[ Goran Rakić @ 08.08.2002. 19:19 ] @
Imam problem sa MySQL++ -om verzije 1.7.9. Preuzeo sam .tar.gz arhivu i prilikom kompajliranja dobio: Code: c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../sqlplusint -I../sqlplusint -I/usr/include/mysql -g -O2 -c custom1.cc custom1.cc:8:1: warning: pasting "~" and "stock" does not give a valid preprocessing token ********************** i tako redja jedno 80 redova sa razli?itim operacijama ********************** custom1.cc:8:1: warning: pasting "." and "item" does not give a valid preprocessing token /bin/sh ../libtool --mode=link c++ -g -O2 -L/usr/lib/mysql -o custom1 custom1.o ../sqlplusint/libsqlplus.la -lz -lmysqlclient c++ -g -O2 -L/usr/lib/mysql -o .libs/custom1 custom1.o ../sqlplusint/.libs/libsqlplus.so -lz -lmysqlclient -lz -lmysqlclient -Wl,--rpath -Wl,/usr/local/lib creating custom1 ************************ SADA IDE ISTO KAO I ZA custom2.cc: ******************** custom2.cc:9:1: warning: pasting "." and "item" does not give a valid preprocessing token /bin/sh ../libtool --mode=link c++ -g -O2 -L/usr/lib/mysql -o custom2 custom2.o util.o ../sqlplusint/libsqlplus.la -lz -lmysqlclient ********************** I TAKO ISTO ZA custom3 i custom4. *********************** Kada zavr?i kompajliranje i odradi make install, i probam da kompajliram example (g++ examples/simple1.cc): Code: /tmp/ccMKPUiy.o: In function `main': /tmp/ccMKPUiy.o(.text+0x30): undefined reference to `MysqlConnection::MysqlConnection(char const *, char const *, char const *, char const *, bool)' /tmp/ccMKPUiy.o(.text+0x521): undefined reference to `operator<<(ostream &, mysql_ColData<const_string> const &)' /tmp/ccMKPUiy.o(.text+0x601): undefined reference to `MysqlConnection::~MysqlConnection(void)' /tmp/ccMKPUiy.o(.text+0x771): undefined reference to `MysqlConnection::~MysqlConnection(void)' /tmp/ccMKPUiy.o: In function `MysqlRes::~MysqlRes(void)': ... I TAKO JEDNO 2 EKRANA Po?to bih voleo da koristim vezu MySQL-a i C++ molio bih za pomo?. Imam gcc 2.96 (RedHat 7.3 na Intel686). Da li je do kompajlera? Evo sada kompajliram gcc3.1.1 ali nisam siguran da je do njega jer do sada nisam imao problema. |