2 messages in com.mysql.lists.plusplusNewbie: Can't build example programs| From | Sent On | Attachments |
|---|---|---|
| Marcus Povey | 23 Oct 2003 06:38 | |
| Warren Young | 24 Oct 2003 06:03 |
| Subject: | Newbie: Can't build example programs![]() |
|---|---|
| From: | Marcus Povey (marc...@e-san.co.uk) |
| Date: | 10/23/2003 06:38:50 AM |
| List: | com.mysql.lists.plusplus |
Hi,
I have installed libsqlplus-dev on Debian testing and am trying to us it but I am having absolutely no luck whatsoever...
Basically, when I try and build anything (including the simple example in the manual) I get pages of errors complaining about syntax errors in the various header files etc.
Eg.
In file included from /usr/include/sqlplus/sqlplus.hh:9, from foo.cpp:3: /usr/include/sqlplus/defs:5:19: mysql.h: No such file or directory In file included from /usr/include/sqlplus/sqlplus.hh:9, from foo.cpp:3: /usr/include/sqlplus/defs:19: error: syntax error before `;' token In file included from /usr/include/sqlplus/coldata1.hh:8, from /usr/include/sqlplus/sqlplus.hh:12, from foo.cpp:3: /usr/include/sqlplus/type_info1.hh:10:19: mysql.h: No such file or directory In file included from /usr/include/sqlplus/coldata1.hh:8, from /usr/include/sqlplus/sqlplus.hh:12, from foo.cpp:3: /usr/include/sqlplus/type_info1.hh: In copy constructor ` mysql_ti_sql_type_info::mysql_ti_sql_type_info(const mysql_ti_sql_type_info&)': /usr/include/sqlplus/type_info1.hh:29: error: `assert' undeclared (first use this function)
<SNIP>
I notice the first error is complaining about not being able to find mysql.h... Could this be the source of the problem? What extra libraries (if any) do I need to install?
What am I missing?
Btw. I am using g++ (gcc version 3.3.2 20031005 (Debian prerelease) )
Suggestions?
Cheers,
M




