Hi, I'm using SOCI 2.2 installed from deb.packages (libsoci-core-gcc-dev etc.). I'm not able to use Ver. 3 because I need the sqlite back-end.
I would like to use dynamic binding and Object-relational mapping with version 2.2. To check out if it works, I used the sample in the documentation: http://soci.sourceforge.net/doc/exchange.html#object_relational What a surprise: I got some errors while compiling the test file: Invoking: GCC C++ Compiler g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" "../main.cpp" ../main.cpp:22: error: 'TypeConversion' is not a template ../main.cpp:22: error: explicit specialization of non-template 'soci::TypeConversion' make: *** [main.o] Error 1 After trying around I found out, that I have to declare the SOCI namespace in upper-case letters in order that 'TypeConversion' will be recognized as a template. Also the type "Values" has to be written with upper-case V in order to be recognized. Now I got the following errors: g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" "../main.cpp" ../main.cpp:25: error: 'indicator' has not been declared ../main.cpp:44: error: 'indicator' has not been declared ../main.cpp: In static member function 'static void SOCI::TypeConversion<Person>::to_base(const Person&, SOCI::Values&, int&)': ../main.cpp:49: error: 'i_ok' was not declared in this scope To be short: The Debian packages are quiet more than just orphaned. I would love to compile soci3 myself with sqlite3 backend support. ./configure --enable-backend-sqlite3 --enable-backend-postgresql --enable-backend-mysql make doesn't work. Thanks for your library and help. regards maurus ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
