4 messages in com.mysql.lists.plusplusRe: Still undefined references| From | Sent On | Attachments |
|---|---|---|
| Reto Stalder | 12 Sep 2002 08:01 | |
| James E. | 12 Sep 2002 08:12 | |
| Andreas Hjordt | 12 Sep 2002 09:29 | |
| Matthew Leach | 12 Sep 2002 22:19 |
| Subject: | Re: Still undefined references![]() |
|---|---|
| From: | James E. (mys...@glodev.com) |
| Date: | 09/12/2002 08:12:08 AM |
| List: | com.mysql.lists.plusplus |
I have experienced the same problems as well. However, for a temporary fix, I found that using the lines the Makefile uses seems to do the trick... although it is a lot more to type and didn't have the result i was hoping for though :-\ but it does work :-)
If anyone else replies to this message with a way to use g++ or gcc, please cc a copy to me :-)
James
----- Original Message ----- From: "Reto Stalder" <rets...@ee.ethz.ch> To: "mysql++" <plus...@lists.mysql.com> Sent: Thursday, September 12, 2002 11:01 AM Subject: Still undefined references
Hi,
my MySQL++ installation does still not work. I've installed it the way Matthiew Leach and Denis Rampnoux have figured out last week. Most of the linker errors don't occur anymore, but there are still some. What library is missing? My C++ program looks like this:
#include <iostream.h> #include <iomanip.h> #include <sqlplus.hh>
int main(){ return 0; }
If I make "g++ main.cc -o main" I get the following errors:
/tmp/ccPlQLcI.o(.rodata+0x120): undefined reference to `mysql_date type_info node' /tmp/ccPlQLcI.o(.rodata+0x158): undefined reference to `mysql_time type_info node' /tmp/ccPlQLcI.o: In function `MysqlDate type_info function': /tmp/ccPlQLcI.o(.gnu.linkonce.t.__tf9MysqlDate+0x18): undefined reference to `mysql_date type_info function' /tmp/ccPlQLcI.o: In function `MysqlTime type_info function': /tmp/ccPlQLcI.o(.gnu.linkonce.t.__tf9MysqlTime+0x18): undefined reference to `mysql_time type_info function' collect2: ld returned 1 exit status
My system is a SuSE 7.1, kernel 2.2.18, gcc and g++ 2.95.2. Packages: - mysql 3.23.30-2 - mysql-client 3.23.30-2 - mysql-devel 3.23.30-2 - mysql-shared 3.23.30-2
Does somebody know how I might get it to work? Thank you very much for your help.
Regards, Reto Stalder
------------------------------ Visit us on WWW.VOLLEYTOTAL.CH




