Closed frameworker2019 closed 1 year ago
I solved the issue. Inside the project settings in Xcode the "Header Search Path" items MUST NOT included with recursive option. So that means for Xcode builds that each subdirectory required by the appropriate header files must be included separately.
I've installed BREW on MacOS and compiled all dependencies needed for a successful SOCI dylib. To start I restrict the database to PostgrSQL with the appropriate libpq.
Following test code is compiled successfully on Linux, but not on MacOS:
What I don't get it in my mind is that I can compile the whole SOCI lib without problems even on MacOS, but run into trouble to play with a test application which is using the library. On brew, no gcc is installed and as I read the make files the default Xcode toolchain is used to compile the SOCI lib.
This is the (uncomplete tl'tr) output of the compilation process of the source code above. Probably there just some additional flags are necessary but unfortunately I'm not an expert in CMake. Any help is appreciate!