Thread: [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. |
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 > |
From: Vizcayno T. <viz...@gm...> - 2011-06-23 01:15:01
|
On Wed, Jun 22, 2011 at 12:46 AM, Artyom Beilis <art...@ya...> wrote: > Hello, > > Do you follow these instructions: > > http://art-blog.no-ip.info/sql/cppdb/build.html > Thanks for your indications, I followed the instructions indicated there so, I have the final product: cppdb_sqlite3.dll After that I executed some of the examples/tests programs with the expected results. :-) My best regards. > 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 >> > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |