Re: [Cppcms-users] MS-VC10 compilation error in cppDB
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-06-22 04:46:37
|
Hello, Do you follow these instructions: http://art-blog.no-ip.info/sql/cppdb/build.html These variables should be defined automatically by CMake script. If it still fails do send me: - the content of CMakeCache.txt created - the output of run of CMake and NMake. Note use -DCMAKE_VERBOSE_MAKEFILE=ON option for CMake so the output would be clear enough. Artyom ----- Original Message ---- > From: Vizcayno Tamparantan <viz...@gm...> > To: cpp...@li... > Sent: Wed, June 22, 2011 1:39:22 AM > Subject: [Cppcms-users] MS-VC10 compilation error in cppDB > > 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. > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |