-
I have successfully installed SOCI via a manifest file: In my test-program I would like to include the following: But I (sometimes) get an error in the CMake stating that the: And In my dummy project I can not find: Error message when building: I have attempted:
Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Update (Solved) My third attempt was to add mysql as a feature to soci And I included the new available linker target in addition to the soci-core: But now when building, it complains the library isn't available. Even if I manually link it: The solution to that was to add: Did the same for sqlite3 - works like a charm! |
Beta Was this translation helpful? Give feedback.
Update (Solved)
My third attempt was to add mysql as a feature to soci
{ "name": "soci", "version>=": "4.0.2", "features": [ "mysql" ] }
This included the
soci-mysql.h
in vcpkg_installedAnd I included the new available linker target in addition to the soci-core:
SOCI::soci_core_static
SOCI::soci_mysql_static
But now when building, it complains the library isn't available.
LINK : fatal error LNK1181: cannot open input file 'mysqlclient.lib' [C:\projects\testVcpkg\build\sources\Test.vcxproj]
But
mysqlclient.lib
is generated and is in thetestVcpkg\build\vcpkg_installed\test-static-triplet\lib
folder.Even if I manually link it:
"C:/projects/testVcpkg/build/vcpkg_installed/test-static-tri…