[odb-users] Visual Studio 2017 - LNK1104 cannot open file 'odb-mysql-d.lib' for Hello World

Boris Kolpackov boris at codesynthesis.com
Fri May 3 10:46:11 EDT 2019


Allan Head <aheadsoftwaredeveloper at gmail.com> writes:

> Replacing odb.lib with odb.dll.lib generates the following error message
> when performing a build:
>
> driver.obj : error LNK2001: unresolved external symbol "struct
> odb::details::share odb::details::shared" (?shared at details@odb@@3Ushare at 12@A)
> person-odb.obj : error LNK2001: unresolved external symbol "struct
> odb::details::share odb::details::shared" (?shared at details@odb@@3Ushare at 12@A)

Hm, strange. Can you add LIBODB_SHARED to PreprocessorDefinitions in
your VC project, rebuild, and see if that helps?



More information about the odb-users mailing list