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

Allan Head aheadsoftwaredeveloper at gmail.com
Thu May 2 17:57:23 EDT 2019


Replacing odb.lib with odb.dll.lib generates the following error message
when performing a build:

  odb person.hxx
  driver.cxx
  person-odb.cxx
  Generating Code...
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)
x64\Debug\driver.exe : fatal error LNK1120: 1 unresolved externals

Don't know what to do at this point.

On Thu, May 2, 2019 at 9:05 AM Boris Kolpackov <boris at codesynthesis.com>
wrote:

> Allan Head <aheadsoftwaredeveloper at gmail.com> writes:
>
> > Replacing odb-mysql-d.lib with odb-mysql.dll.lib and replacing odb-d.lib
> > with odb.lib in the VC project file worked.
>
> This should be odb.dll.lib, not odb.lib (which is a static library).
>


More information about the odb-users mailing list