ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
410 stars 84 forks source link

unresolved external symbol const iware::version #46

Closed MohammadKanan closed 3 years ago

MohammadKanan commented 3 years ago

Compiled with Visual Studio 2017 , when I compile whole project with examples .. everything is ok. When compile shared library (with DLL) , and include in my project .. get this error : unresolved external symbol const iware::version All other interfaces are working fine.

nabijaczleweli commented 3 years ago

What's the export list on the DLL?

MohammadKanan commented 3 years ago

Sorry for the confusion, I actually was trying to compile the shared library .. got confused with a cmake configuration entry something called "public" which sets shared ... I misunderstood that part .. and thought its already compiling shared library and DLL; just compiled normally with cmake BUILD_SHARED_LIBS .. Sorry for inconvenience. Thanks.

ThePhD commented 3 years ago

That's fine, glad you ended up getting it!