Properly Installing SOCI C++ library and using it with eclipse

80 Views Asked by At

I have been trying to employ SOCI library for the c++ project I am working on as I needed to access MySQL databases. I have been wrapping my head around how exactly this library works in terms of installing. I have windows 11 and want to use the library on eclipse. What I've done so far:

-Downloaded soci-4.0.3 in C:\

-Made an empty "build" file inside "C:\soci-4.0.3"

-Accessed the build file using Command Prompt

-Wrote 'cmake -G "MinGW Makefiles" ..'"(as I will use it for Eclipse)

-Then 'cmake --build . '

-In "soci-4.0.3\build\include" there is only "soci-config.h"

-In "soci-4.0.3\build\lib" .a and .dll.a files are present.

Then I included the "include" file in the gcc++ compiler include section and "lib" file in the MinGW Linker (-L)

When I compile my code in main.cpp trying to make a connection, it keeps saying that certain .cpp files(ex.soci\soci-platform.h) are missing.

I realize that there is a lot of ambiguity in the formulation of the steps that I took, as I don't have much experience using libraries and cmake, let alone the SOCI library. but I was wondering if there is any obvious step that I missed.

Thank you so much!

0

There are 0 best solutions below