Exiv2 / exiv2

Image metadata library and tools
http://www.exiv2.org/
Other
927 stars 282 forks source link

Using exiv2 with MSVC 2019 unresolved external "__std_find_trivial" #2429

Open tester0077 opened 1 year ago

tester0077 commented 1 year ago

I am trying to use the published package from either exiv2-0.27.5-2019msvc64 or exiv2-main in a MSVC 2019 project.

For both I end up with unresolved externals as reported by MSVC at link time:

11>------ Build started: Project: wxMeta, Configuration: DebUniStat x64 ------ 11>exiv2.lib(xmp.cpp.obj) : error LNK2019: unresolved external symbol std_find_trivial_1 referenced in function "char cdecl std_find_trivial<char,char>(char ,char *,char)" (??$std_find_trivial@DD@@YAPEADPEAD0D@Z) 11>exiv2.lib(futils.cpp.obj) : error LNK2001: unresolved external symbol std_find_trivial_1 11>exiv2.lib(jpgimage.cpp.obj) : error LNK2019: unresolved external symbol std_find_trivial_8 referenced in function "unsigned int64 * cdecl std_find_trivial<unsigned int64,unsigned int64>(unsigned int64 ,unsigned __int64 ,unsigned int64)" (??$std_find_trivial@_K_K@@YAPEA_KPEA_K0_K@Z) 11>D:\pkg\wx\MSVC_2019_3.1.4_2019\wxMeta\x64\DebUniStat\wxMeta.exe : fatal error LNK1120: 2 unresolved externals

Running on desktop, Win 11, MSVC 2019, Unicode debug, 64-bit, C language Standard: Default(Legacy MSVC0

YNBTools commented 1 year ago

exiv2-02.27.5-2019msvc64 is OK,Pay attention to the path and link settings.but You must copy exiv2.dll to the running directory. Packages in the Neget library can only be used for VS2022.

neheb commented 1 year ago

How about exiv2 0.28?