Unable to link mariadbcpp.lib with g++
Hi, I was developing an application with the C++ connector. I have worked with linux and it worked well. Now I want to compile the same project under Win11 and it seems that the g++ compiler is not able to link the mariadbcpp.lib. Below you can see my compile command:
<<g++.exe -o bin\Debug\TestProject.exe obj\Debug\cDatabase_TestProject.o obj\Debug\Testbench_cDatabase_TestProject.o "C:\Program Files\MariaDB\MariaDB C++ Connector 64-bit\mariadbcpp.lib">>
This command results in various undefined reference to... lines. So all header files seems to be found and the lib itself seems to be found by the compiler, too. Otherwise the result -lmariadb: no such file or directory is shown. I'm confused because in my linux environment it works without any issues. I tried it with connector versions 1.0.4 and 1.1.5, both 64-bit versions.
So I am not sure if there is something I am doing wrong or maybe there is an other issue here.
Would be great when you can give me a hint where is the problem here.
Many thanks, David