2 messages in com.mysql.lists.plusplusRE: mysql help| From | Sent On | Attachments |
|---|---|---|
| User & | 17 May 2002 07:27 | |
| Medha Joshi | 17 May 2002 14:41 |
| Subject: | RE: mysql help![]() |
|---|---|
| From: | Medha Joshi (med...@stratalight.com) |
| Date: | 05/17/2002 02:41:56 PM |
| List: | com.mysql.lists.plusplus |
Hi,
Just noticed one thing in your mail. MySQL++ doc. says it doesn't support gcc 2.95.3 So maybe you can use 2.95.2 For linker errors, add -lsqlplus to your command line and it would work.
Medha
-----Original Message----- From: User & [mailto:te...@charter.net] Sent: Friday, May 17, 2002 7:28 AM To: plus...@lists.mysql.com Subject: mysql help
I hate to ask, but can someone tell me what command options they use to compile a simple mysql++ program...
I am trying to get the first example in the tutorial to work and i am getting linking errors (still)...i installed mysql database locally,...mysql++1.79 is installed
i am using freeBSD4.4, g++ 2.95.3
thanks, bd
example of errors:
%g++ -I/usr/local/include -L/usr/local/lib/mysql -o simple simple1.cc /tmp/ccWAEXkZ.o: In function `main': /tmp/ccWAEXkZ.o(.text+0x3c): undefined reference to `MysqlConnection::MysqlConnection(char const *, char const *, char const *, char const *, bool)' /tmp/ccWAEXkZ.o(.text+0x59): undefined reference to `MysqlConnection::~MysqlConnection(void)' /tmp/ccWAEXkZ.o(.text+0x9e6): undefined reference to `operator<<(ostream &, mysql_ColData<const_string> const &)'
and also:




