6 messages in com.mysql.lists.plusplusCan't compile any program using mySQL++| From | Sent On | Attachments |
|---|---|---|
| Magnet | 27 Oct 2003 09:38 | |
| Sinisa Milivojevic | 28 Oct 2003 03:05 | |
| Magnet | 28 Oct 2003 07:10 | |
| Sinisa Milivojevic | 29 Oct 2003 03:00 | |
| Magnet | 29 Oct 2003 08:45 | |
| Sinisa Milivojevic | 31 Oct 2003 02:53 |
| Subject: | Can't compile any program using mySQL++![]() |
|---|---|
| From: | Magnet (mys...@mithrandir.net) |
| Date: | 10/27/2003 09:38:51 AM |
| List: | com.mysql.lists.plusplus |
Hi there,
As I am interested in using mySQL++, which looks a very nice library (as a STL and mySQL lover I cannot dream better), I tried to install it on my Debian GNU/Linux system.
Well, I first tried from the tarball archive. I successfully installed it, but I couldn't compile : g++ didn't give me any error but ld did.
So I dediced to remove everything and to try installing the supported debian package and its devel headers, which is in the "testing" debian branch. Well, after upgrading my whole stable system (now using gcc 3.3-base, libSTL++5...), it was finally installed. Nice.
Well, in fact, nothing has changed. g++ still doesn't output any error about simple programs I wrote or examples given in the tarball, but ld does.
Look at these :
[magnet@palantir examples]$ g++ resetdb.cc /tmp/ccLzUneh.o: dans la fonction `main': /tmp/ccLzUneh.o(.text+0x49): référence indéfinie vers `MysqlConnection::connect(char const *, char const *, char const *, char const *)' /tmp/ccLzUneh.o(.text+0x7e): référence indéfinie vers `MysqlConnection::connect(char const *, char const *, char const *, char const *)' /tmp/ccLzUneh.o(.text+0xb4): référence indéfinie vers `MysqlConnection::connect(char const *, char const *, char const *, char const *)' /tmp/ccLzUneh.o(.text+0xf1): référence indéfinie vers `MysqlConnection::connect(char const *, char const *, char const *, char const *)' /tmp/ccLzUneh.o(.text+0x108): référence indéfinie vers `MysqlConnection::select_db(char const *)' /tmp/ccLzUneh.o(.text+0x203): référence indéfinie vers `SQLQuery::parse(void)' /tmp/ccLzUneh.o(.text+0x97d): référence indéfinie vers `MysqlConnection::~MysqlConnection(void)' /tmp/ccLzUneh.o(.text+0xa09): référence indéfinie vers `MysqlConnection::select_db(char const *)' /tmp/ccLzUneh.o(.text+0xec1): référence indéfinie vers `MysqlConnection::~MysqlConnection(void)' /tmp/ccLzUneh.o(.text+0xfdd): référence indéfinie vers `MysqlConnection::~MysqlConnection(void)' /tmp/ccLzUneh.o(.text+0x106d): référence indéfinie vers `MysqlConnection::~MysqlConnection(void)' /tmp/ccLzUneh.o: dans la fonction `MysqlConnection::MysqlConnection(bool)':
And so on.. (Sorry the messages are in french, "référence indéfinie vers" just means "undefinied reference to", and "dans la fonction" means "in function".. well, I bet you could have guessed it ;).
If you have any clue to fix my problem, I'll be greatful. If you need any information about my system (ie different versions of different utils), just ask me.
Thanks in advance.
(PS: sorry for the moderators if there were previous mails. I was using a fake "from" header in my mail to prevent spam.)
-- Magnet
-= Star Wars ~ "LUKE: Why didn't you say so before?" =-




