You need to compile SQLite3 with the following flag: -DSQLITE_ENABLE_COLUMN_METADATA
Michael. On Sun, May 11, 2008 at 4:55 AM, Tatsuro MATSUOKA <[EMAIL PROTECTED]> wrote: > Hello Xavier and Michael > > Here is the reults on mingw. > Unfortunately results are not good. > > The sqllite-3.5.8 is build from source on msys+mingw and intall in the > octave-3.0.1 installation > directries. > > octave-forge is configured with > octave: octave (version 3.0.1) > mkoctfile: mkoctfile for Octave 1 > swig: pre-generated > postgres: postgresql/libpq-fe.h not found > mysql: mysql/mysql.h not found > sqlite3: yes > odbc: yes > > In case of mingw, sql.h warning disappred perhaps due to Michal's patch. > However, > sqlite3: failed > odbc: falled > > Link errors for sqlite3 seemed to be the same as those of the cygwin. > > Compile error in odbc_wrap.cpp > odbc_wrap.cpp: In function `octave_value_list _wrap_SQLExtendedFetch(const > octave_value_list&, int)': > > This is perhaps due the mingw and msvc not being compatible each other. > > I do not have enough time and power at the moment. > SovI forgive to support databae-packege for my mingw octave-3.0.1 at this > moment > > $ make -i > CXXFLAGS="-g" mkoctfile -DHAVE_OCTAVE_30 -v -o sqlite3.oct -lsqlite3 > sqlite3_wrap.cpp > g++ -c -I/mingw/include -I/include -I/usr/local/octave-3.0.1/include > -I/GnuWin32/include > -I/usr/local/octave-3.0.1/include/octave-3.0.1 > -I/usr/local/octave-3.0.1/include/octave-3.0.1/octave > -I/usr/local/octave-3.0.1/include -mieee-fp -g -DHAVE_OCTAVE_30 > sqlite3_wrap.cpp -o sqlite3_wrap.o > g++ -shared -Wl,--export-all-symbols -Wl,--enable-auto-import > -Wl,--enable-runtime-pseudo-reloc -o > sqlite3.oct sqlite3_wrap.o -lsqlite3 > -L/usr/local/octave-3.0.1/lib/octave-3.0.1 > -L/usr/local/octave-3.0.1/lib -loctinterp -loctave -lcruft -L/mingw/lib > -L/lib > -L/usr/local/octave-3.0.1/lib -L/GnuWin32/lib -L/GnuWin32/bin > -llapack -ltmglib -lblas -lfftw3 -luuid -lgmp -lws2_32 -lssl -lcrypto > -lwldap32 > -lcurl.dll -Lc:/Programs/MinGW/lib > -LC:/Programs/msys/1.0/local/octave-3.0.1/lib > -Lc:/Programs/GnuWin32/lib -Lc:/Programs/GnuWin32/bin > -Lc:/Programs/MinGW/bin/../lib/gcc/mingw32/3.4.5 > -Lc:/Programs/MinGW/bin/../lib/gcc > -Lc:/Programs/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/lib > -Lc:/Programs/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../.. -lz -lm -luuid > -lgmp -lws2_32 -lssl -lcrypto > -lwldap32 -lcurl.dll -lfrtbegin -lg2c -lmingw32 -lmoldname -lmingwex > -lmsvcrt -luser32 -lkernel32 > -ladvapi32 -lshell32 > sqlite3_wrap.o: In function > `Z34_wrap_sqlite3_column_database_nameRK17octave_value_listi': > > C:/Programs/msys/1.0/local/octave-forge-bundle-20080429/main/database-1.0.s/src/sqlite3_wrap.cpp:4182: > undefined reference to `sqlite3_column_database_name' > sqlite3_wrap.o: In function > `Z36_wrap_sqlite3_column_database_name16RK17octave_value_listi': > > C:/Programs/msys/1.0/local/octave-forge-bundle-20080429/main/database-1.0.s/src/sqlite3_wrap.cpp:4215: > undefined reference to `sqlite3_column_database_name16' > sqlite3_wrap.o: In function > `Z31_wrap_sqlite3_column_table_nameRK17octave_value_listi': > > C:/Programs/msys/1.0/local/octave-forge-bundle-20080429/main/database-1.0.s/src/sqlite3_wrap.cpp:4248: > undefined reference to `sqlite3_column_table_name' > sqlite3_wrap.o: In function > `Z33_wrap_sqlite3_column_table_name16RK17octave_value_listi': > > C:/Programs/msys/1.0/local/octave-forge-bundle-20080429/main/database-1.0.s/src/sqlite3_wrap.cpp:4281: > undefined reference to `sqlite3_column_table_name16' > sqlite3_wrap.o: In function > `Z32_wrap_sqlite3_column_origin_nameRK17octave_value_listi': > > C:/Programs/msys/1.0/local/octave-forge-bundle-20080429/main/database-1.0.s/src/sqlite3_wrap.cpp:4314: > undefined reference to `sqlite3_column_origin_name' > sqlite3_wrap.o: In function > `Z34_wrap_sqlite3_column_origin_name16RK17octave_value_listi': > > C:/Programs/msys/1.0/local/octave-forge-bundle-20080429/main/database-1.0.s/src/sqlite3_wrap.cpp:4347: > undefined reference to `sqlite3_column_origin_name16' > sqlite3_wrap.o: In function > `Z35_wrap_sqlite3_table_column_metadataRK17octave_value_listi': > > C:/Programs/msys/1.0/local/octave-forge-bundle-20080429/main/database-1.0.s/src/sqlite3_wrap.cpp:6650: > undefined reference to `sqlite3_table_column_metadata' > collect2: ld returned 1 exit status > make: [sqlite3.oct] Error 1 (ignored) > > > CXXFLAGS="-g" mkoctfile -DHAVE_OCTAVE_30 -v -o odbc.oct -lodbc32 > odbc_wrap.cpp > g++ -c -I/mingw/include -I/include -I/usr/local/octave-3.0.1/include > -I/GnuWin32/include > -I/usr/local/octave-3.0.1/include/octave-3.0.1 > -I/usr/local/octave-3.0.1/include/octave-3.0.1/octave > -I/usr/local/octave-3.0.1/include -mieee-fp -g -DHAVE_OCTAVE_30 > odbc_wrap.cpp -o odbc_wrap.o > odbc_wrap.cpp: In function `octave_value_list _wrap_SQLExtendedFetch(const > octave_value_list&, int)': > odbc_wrap.cpp:5227: error: `SQLROWSETSIZE' was not declared in this scope > odbc_wrap.cpp:5227: error: `arg4' was not declared in this scope > odbc_wrap.cpp:5227: error: expected primary-expression before ')' token > odbc_wrap.cpp:5227: error: expected `;' before numeric constant > odbc_wrap.cpp:5264: error: expected primary-expression before ')' token > make: [odbc.oct] Error 1 (ignored) > > > > -------------------------------------- > GANBARE! NIPPON! Win your ticket to Olympic Games 2008. > http://pr.mail.yahoo.co.jp/ganbare-nippon/ > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
