3 messages in com.mysql.lists.plusplusTrouble with OpenInventor and MySql++| From | Sent On | Attachments |
|---|---|---|
| Cyril ZEKSER | 08 Dec 2000 06:42 | |
| Cyril ZEKSER | 08 Dec 2000 10:26 | |
| lan...@seacoms.com | 14 Dec 2000 11:34 |
| Subject: | Trouble with OpenInventor and MySql++![]() |
|---|---|
| From: | Cyril ZEKSER (czek...@visiospace.com) |
| Date: | 12/08/2000 06:42:47 AM |
| List: | com.mysql.lists.plusplus |
Hi all,
I've got a problem while trying to compile a program with both Mysql++ and OpenInventor. I've tried to separate the applis, and I've obtained separate version working correctly (ie. OpenInventor and SQL separated). I've seen that when I simply add the line #include "sqlplus.hh" I've got g++ saying :
------------------------------------------------------- /usr/local/include/sql_query1.hh:123: declaration does not declare anything /usr/local/include/sql_query1.hh:123: parse error before `0' /usr/local/include/sql_query1.hh: In method `SQLQuery::SQLQuery ()': /usr/local/include/sql_query1.hh:133: parse error before `0' In file included from /usr/local/include/connection1.hh:21, from /usr/local/include/sqlplus.hh:15, from ex2.cpp:63: /usr/local/include/query1.hh: In method `MysqlQuery::MysqlQuery (MysqlConnection *, bool)': /usr/local/include/query1.hh:34: non-lvalue in assignment In file included from /usr/local/include/sqlplus.hh:15, from ex2.cpp:63: /usr/local/include/connection1.hh: At top level: /usr/local/include/connection1.hh:34: declaration does not declare anything /usr/local/include/connection1.hh:34: parse error before `0' /usr/local/include/connection1.hh: In method `MysqlConnection::MysqlConnection (bool)': /usr/local/include/connection1.hh:39: parse error before `0' In file included from /usr/local/include/sqlplus.hh:17, from ex2.cpp:63: /usr/local/include/convert1.hh: At top level: /usr/local/include/convert1.hh:19: declaration of `double strtod (const char *, char **)' throws different exceptions /usr/include/stdlib.h:296: than previous declaration `double strtod (const char *, char **) throw ()' /usr/local/include/convert1.hh:36: declaration of `long int strtol (const char *, char **, int)' throws different exceptions /usr/include/stdlib.h:302: than previous declaration `long int strtol (const char *, char **, int) throw ()' /usr/local/include/convert1.hh:37: declaration of `long unsigned int strtoul (const char *, char **, int)' throws different exceptions /usr/include/stdlib.h:308: than previous declaration `long unsigned int strtoul (const char *, char **, int) throw ()' /usr/local/include/convert1.hh:61: declaration of `long long int strtoll (const char *, char **, int)' throws different exceptions /usr/include/stdlib.h:344: than previous declaration `long long int strtoll (const char *, char **, int) throw ()' /usr/local/include/convert1.hh:62: declaration of `long long unsigned int strtoull (const char *, char **, int)' throws different exceptions /usr/include/stdlib.h:350: than previous declaration `long long unsigned int strtoull (const char *, char **, int) throw ()' ex2.cpp:157: return type for `main' changed to `int' make: *** [ex2.o] Erreur 1
---------------------------------------------
Seems strange to me that sqlplus.hh has two different behaviours with the same compiler options no ? What could be wrong there...




