Hi Mateusz- After failed attempts to get backend firebird to work with SOCI 4 (backend), I gave up especially after the firebird people said no more support for mingw with firebird.
Now, I installed postgresql with mingw, and the server is running and I am connecting. This one built correctly because instead of .lib files they are .a files which mingw 64 prefers. It even gave me an everything went well msg after make install. I can't get postgresql to configure with back end support. I set the LD_LIBRARY_PATH and ran an echo command and it is there (closed the shell and reopened too) It gives this msg no matter what I put in the CMAKE descriptors below... WARNING: PostgreSQL libraries not found, some features will be disabled. I am using postgresql 12.0-devel from GitHub built from src in mingw. I run the CMAKE commands below in mingw/msys2. I updated mingw packages recently with pacman.. I don't know how you could possibly test each environment, but I thought it is worth it to point out my experience. Thnx for all help. roboloki cmake -G "Unix Makefiles" \ -DDESTDIR="postgres-12.0" \ -DCMAKE_INSTALL_PREFIX="/usr/local" \ -DSOCI_STATIC=TRUE \ -DSOCI_SHARED=TRUE \ -DWITH_MYSQL=FALSE -DWITH_ODBC=FALSE \ -DWITH_SQLITE3=FALSE -DWITH_DB2=OFF -DSOCI_CXX_C11=TRUE \ -DWITH_BOOST=FALSE -DWITH_FIREBIRD=FALSE \ -DWITH_POSTGRESQL=TRUE \ -DPOSTGRESQL_INCLUDE_DIR= "/c/pgsql/include" \ -DPOSTGRESQL_LIBRARY_DIR="/c/pgsql/lib" \ -DCMAKE_C_COMPILER="c:/msys64/mingw64/bin/x86_64-w64-mingw32-gcc.exe" \ -DCMAKE_CXX_COMPILER="c:/msys64/mingw64/bin/x86_64-w64-mingw32-g++.exe" \ -DWITH_BOOST=FALSE \ -DWITH_ORACLE=FALSE \ ../
_______________________________________________ soci-users mailing list soci-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/soci-users