Hi all- I get the following error message when trying to run make on my cmake soci script. Please let me know if you have an idea to help me fix it. THANKS
c:\soci-4.0.2\build>make.exe [ 1%] Building CXX object src/core/CMakeFiles/soci_core.dir/backend-loader.cpp.obj C:/soci-4.0.2/src/core/backend-loader.cpp:239:20: error: use of undeclared identifier 'soci_'; did you mean 'soci'? h = DLOPEN(LIBNAME(name).c_str()); ^ C:/soci-4.0.2/src/core/backend-loader.cpp:46:25: note: expanded from macro 'LIBNAME' #define LIBNAME(x) (SOCI_LIB_PREFIX + x + "_" SOCI_ABI_VERSION SOCI_DEBUG_POSTFIX SOCI_LIB_SUFFIX) ^ <command line>:4:25: note: expanded from here #define SOCI_LIB_PREFIX soci_ ^ C:/soci-4.0.2/include\soci/backend-loader.h:16:11: note: 'soci' declared here namespace soci ^ C:/soci-4.0.2/src/core/backend-loader.cpp:239:20: error: unexpected namespace name 'soci': expected expression h = DLOPEN(LIBNAME(name).c_str()); ^ C:/soci-4.0.2/src/core/backend-loader.cpp:46:25: note: expanded from macro 'LIBNAME' #define LIBNAME(x) (SOCI_LIB_PREFIX + x + "_" SOCI_ABI_VERSION SOCI_DEBUG_POSTFIX SOCI_LIB_SUFFIX) ^ <command line>:4:25: note: expanded from here #define SOCI_LIB_PREFIX soci_ ^ C:/soci-4.0.2/src/core/backend-loader.cpp:245:73: error: use of undeclared identifier 'soci_'; did you mean 'soci'? std::string const fullFileName(search_paths_[i] + "/" + LIBNAME(name)); ^ C:/soci-4.0.2/src/core/backend-loader.cpp:46:25: note: expanded from macro 'LIBNAME' #define LIBNAME(x) (SOCI_LIB_PREFIX + x + "_" SOCI_ABI_VERSION SOCI_DEBUG_POSTFIX SOCI_LIB_SUFFIX) ^ <command line>:4:25: note: expanded from here #define SOCI_LIB_PREFIX soci_ ^ C:/soci-4.0.2/include\soci/backend-loader.h:16:11: note: 'soci' declared here namespace soci ^ C:/soci-4.0.2/src/core/backend-loader.cpp:245:73: error: unexpected namespace name 'soci': expected expression std::string const fullFileName(search_paths_[i] + "/" + LIBNAME(name)); ^ C:/soci-4.0.2/src/core/backend-loader.cpp:46:25: note: expanded from macro 'LIBNAME' #define LIBNAME(x) (SOCI_LIB_PREFIX + x + "_" SOCI_ABI_VERSION SOCI_DEBUG_POSTFIX SOCI_LIB_SUFFIX) ^ <command line>:4:25: note: expanded from here #define SOCI_LIB_PREFIX soci_ ^ 4 errors generated. make[2]: *** [src/core/CMakeFiles/soci_core.dir/build.make:77: src/core/CMakeFiles/soci_core.dir/backend-loader.cpp.obj] Error 1 make[1]: *** [CMakeFiles/Makefile2:363: src/core/CMakeFiles/soci_core.dir/all] Error 2 make: *** [Makefile:146: all] Error 2 c:\soci-4.0.2\build>
_______________________________________________ soci-users mailing list soci-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/soci-users