[Cppcms-users] MS-VC10 compilation error in cppDB
Brought to you by:
artyom-beilis
From: Vizcayno T. <viz...@gm...> - 2011-06-21 22:39:29
|
Hello: In program driver_manager.cpp the next lines are written: . . . if (!(module=conn.get("@module")).empty()) { so_names.push_back(module); } else { Line 160: std::string so_name1 = CPPDB_LIBRARY_PREFIX "cppdb_" + conn.driver + CPPDB_LIBRARY_SUFFIX_V1; std::string so_name2 = CPPDB_LIBRARY_PREFIX "cppdb_" + conn.driver + CPPDB_LIBRARY_SUFFIX_V2; . . . When compiling in MS-VC2010 I have the next error in line 160: error C2065: 'CPPDB_LIBRARY_PREFIX' : undeclared identifier error C2143: syntax error : missing ';' before 'string' driver_manager.cpp error C2146: syntax error : missing ';' before identifier 'CPPDB_SOVERSION' error C2065: 'CPPDB_SOVERSION' : undeclared identifier error C2146: syntax error : missing ';' before identifier 'CPPDB_LIBRARY_SUFFIX' error C2065: 'CPPDB_LIBRARY_SUFFIX' : undeclared identifier I read some of the file cppDB\CMakeLists.txt and I found the next definitions: add_definitions(-DCPPDB_LIBRARY_PREFIX="${CMAKE_SHARED_LIBRARY_PREFIX}") add_definitions(-DCPPDB_LIBRARY_SUFFIX="${CMAKE_SHARED_LIBRARY_SUFFIX}") add_definitions(-DCPPDB_SOVERSION="${CPPDB_SOVERSION}") However, I can not establish the values of ${CMAKE_SHARED_LIBRARY_PREFIX}, ${CMAKE_SHARED_LIBRARY_SUFFIX} and ${CPPDB_SOVERSION} Is this possible for you to help me in this matter? My best regards Vizcayno. |