Re: [Cppcms-users] CPPDB compile LIB
Brought to you by:
artyom-beilis
|
From: <la...@sa...> - 2013-07-15 08:17:29
|
Ok, thanks. was able to compile without errors. ///////////////////////////////////////////////////// cd cppdb-trunk mkdir build cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=arm -DCMAKE_C_COMPILER=/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER=/home/common/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++ -DCMAKE_FINd_ROOt_PATH=/home/common/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi -DSQLITE3_PATH=/home/common/SQLITE/sqlite -DSQLITE3_LIB=/home/common/SQLITE/sqliteinstall/lib/libsqlite3.a -DCMAKE_LINKER=/home/Modusat/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/bin/gcc -DCMAKE_FIND_ROOT_PATH_MODEPROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_CXX_FLAGS_RELEASE="-fPIC -shared" -DCMAKE_CXX_FLAGS="-fPIC -shared" make make install /////////////////////////////////////////////////// It had some warnings, but I don't think this may be a problem: ///////////////////////////////// Linking CXX executable example [ 84%] Built target example Scanning dependencies of target test_backend [ 88%] Building CXX object CMakeFiles/test_backend.dir/test/test_backend.cpp.o /home/Modusat/cppdb-trunk/test/test_backend.cpp:495: warning: this decimal constant is unsigned only in ISO C90 /home/Modusat/cppdb-trunk/test/test_backend.cpp: In function 'void test7(cppdb::ref_ptr<cppdb::backend::connection>)': /home/Modusat/cppdb-trunk/test/test_backend.cpp:495: warning: comparison between signed and unsigned integer expressions /////////////////////////////// Now that I created the cppdb lib file, tried to compile my project with it, but gives an error on cppdb frontend.h class, don't know if the lib is not correctly created ... I know is a c++ error and not a cppdb error, but can this mean that the cppdb lib still is not created properly? ////////////////////////////////// /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:52: error: expected constructor, destructor, or type conversion before 'char' /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:58: error: expected constructor, destructor, or type conversion before 'int' /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:207: error: function definition does not declare parameters /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:598: error: function definition does not declare parameters /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h: In function 'void cppdb::exec(cppdb::statement&)': /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:954: error: invalid use of incomplete type 'struct cppdb::statement' /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:42: error: forward declaration of 'struct cppdb::statement' /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h: In function 'void cppdb::null(cppdb::statement&)': /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:966: error: invalid use of incomplete type 'struct cppdb::statement' /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:42: error: forward declaration of 'struct cppdb::statement' /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h: In function 'cppdb::result cppdb::row(cppdb::statement&)': /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:987: error: return type 'struct cppdb::result' is incomplete /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:989: error: invalid use of incomplete type 'struct cppdb::statement' /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:42: error: forward declaration of 'struct cppdb::statement' /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h: At global scope: /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:998: error: function definition does not declare parameters /home/common/source/Units/Comms/Backends/../../../../../Modusat/cppdb-trunk/cppdb/frontend.h:1269: error: function definition does not declare parameters ////////////////////////////////// Quoting Marcel Hellwig <ke...@co...>: > On 12.07.2013 09:56, la...@sa... wrote: >> Nonrepresentable section on output > Have you googled your problem? > > http://stackoverflow.com/questions/1521859/nonrepresentable-section-on-output-error-during-linking-on-linux > > This is a mailinglist regarding cppcms/cppdb not c++ specific errors, sorry. > > Regards |