Skip to content

VS2022 build failure. link error with libiconv? #98

@g40

Description

@g40

Any thoughts on this? Any help welcomed.

Win32 UNICODE build as cloned from Github.

NuGet reports libiconv is present:

image

All other packages are present and link as expected:

image

Truncated error report (all the rest is clean).
"
1>Unicode Selected
1>R:\src\cpp\hardware\TinyCAD\src\sqlite\CppSQLite3U.cpp(256,1): warning C4715: 'CppSQLite3DB::execDML': not all control paths return a value
1>sqlite3.c
1>NetList.obj : error LNK2019: unresolved external symbol _libiconv_open referenced in function "void __cdecl to_utf8(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,class std::basic_ofstream<char,struct std::char_traits > &)" (?to_utf8@@YAXABV?$basic_string@_WU?$char_traits@_W@std@@v?$allocator@_W@2@@std@@aav?$basic_ofstream@DU?$char_traits@D@std@@@2@@z)
1>XMLReader.obj : error LNK2001: unresolved external symbol _libiconv_open
1>XMLWriter.obj : error LNK2001: unresolved external symbol _libiconv_open
1>NetList.obj : error LNK2019: unresolved external symbol _libiconv referenced in function "void __cdecl to_utf8(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,class std::basic_ofstream<char,struct std::char_traits > &)" (?to_utf8@@YAXABV?$basic_string@_WU?$char_traits@_W@std@@v?$allocator@_W@2@@std@@aav?$basic_ofstream@DU?$char_traits@D@std@@@2@@z)
1>XMLReader.obj : error LNK2001: unresolved external symbol _libiconv
1>XMLWriter.obj : error LNK2001: unresolved external symbol _libiconv
1>NetList.obj : error LNK2019: unresolved external symbol _libiconv_close referenced in function "void __cdecl to_utf8(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &,class std::basic_ofstream<char,struct std::char_traits > &)" (?to_utf8@@YAXABV?$basic_string@_WU?$char_traits@_W@std@@v?$allocator@_W@2@@std@@aav?$basic_ofstream@DU?$char_traits@D@std@@@2@@z)
1>XMLReader.obj : error LNK2001: unresolved external symbol _libiconv_close
1>XMLWriter.obj : error LNK2001: unresolved external symbol _libiconv_close
1>R:\src\cpp\hardware\TinyCAD\Debug\TinyCAD.exe : fatal error LNK1120: 3 unresolved externals
1>Done building project "TinyCad.vcxproj" -- FAILED.
"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions