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

Allan Head aheadsoftwaredeveloper at gmail.com
Wed May 1 17:05:07 EDT 2019


Replacing odb-mysql-d.lib with odb-mysql.dll.lib and replacing odb-d.lib
with odb.lib in the VC project file worked.  However, when I run the
following command from a VS Command Prompt:

driver.exe --user <my user name> --password <my password> --database
odb_test


I get the following error message:  "operation can only be performed in
transaction".  Looking at driver.cxx the inserts for john, jane, and joe
appear to be taking place in a transaction.  Any suggestions?


On Wed, May 1, 2019 at 6:15 AM Boris Kolpackov <boris at codesynthesis.com>
wrote:

> Allan Head <aheadsoftwaredeveloper at gmail.com> writes:
>
> > After following the Build2 installation instructions, I cannot seem to
> get
> > the Hello World example to work.  I opened the hello-mysql-vc12 project
> and
> > upgraded it to vc141.  The program compiles, but during the build it
> > generates the error LINK:  fatal error LNK1104: cannot open file
> > 'odb-mysql-d.lib'.  I do not have an 'odb-mysql-d.lib' file, but I do
> have
> > an odb-mysql.lib file and an odb-mysql.dll.lib file.
>
> Just replace odb-mysql-d.lib with odb-mysql.dll.lib in the VC project
> file (and also make sure you have added its location to VC Directories
> or equivalent).
>
>
> > Should the odb-example-2.4.0 work under ODB 2.5.0-b.13 or am I trying to
> do
> > the impossible?
>
> I think this should work. Eventually we will package ODB examples for
> build2 but for now this should do.
>


More information about the odb-users mailing list