Skip to content

[SOCI] How do I enable soci-mysql and soci-sqlite3 #29791

Answered by MadsTrel
MadsTrel asked this question in Q&A
Discussion options

You must be logged in to vote

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_installed

And 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 the testVcpkg\build\vcpkg_installed\test-static-triplet\lib folder.

Even if I manually link it:
"C:/projects/testVcpkg/build/vcpkg_installed/test-static-tri…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MadsTrel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant