View previous topic :: View next topic |
Author |
Message |
lorschy Apprentice
Joined: 16 Jul 2002 Posts: 191
|
Posted: Thu Oct 02, 2003 8:44 pm Post subject: mysql++ 1.7.9-r2 (welche library nutzen) |
|
|
hy leute, sagt mal hat schonmal einer von euch mit mysql++-1.7.9-r2 rumgespielt?
ich habe mich genau an das tutorial bei mysql.com gehalten aber nun steh ich vor dem grossen problem das ich meine file nicht gelinked bekomm.
welche library brauch ich denn?
Code: | g++ -o test .test.ccp -lmysqlclien |
das ging bisher immer aber mit den neuen codeschnipselnund der neuen include datei mysqlplus.hh geht bei mir garnix mehr.[/code] |
|
Back to top |
|
|
cvk Guru
Joined: 06 Jan 2003 Posts: 314 Location: Our house, in the middle of our street
|
Posted: Thu Oct 02, 2003 10:22 pm Post subject: |
|
|
Bei mir klappts mit
Code: | g++ filename.cpp -o whatever -I/usr/include/mysql++ -I/usr/include/mysql -lsqlplus -lmysqlclient |
...dafür habe ich aber ein anderes Problem...
cvk _________________ Adopt an unanswered post now. |
|
Back to top |
|
|
Frost n00b
Joined: 20 Jan 2003 Posts: 7 Location: Dresden, Germany
|
Posted: Mon Sep 13, 2004 8:54 pm Post subject: |
|
|
Ich habe ein ähnliches Problem. Ich bekomme bei compilieren folgende Fehlermeldung:
Code: | In file included from /usr/include/mysql++/coldata1.hh:8,
from /usr/include/mysql++/sqlplus.hh:12,
from bauen.h:10,
from bauen.cpp:1:
/usr/include/mysql++/type_info1.hh: In constructor `
mysql_ti_sql_type_info::mysql_ti_sql_type_info()':
/usr/include/mysql++/type_info1.hh:29: error: uninitialized member '
mysql_ti_sql_type_info::_base_type' with 'const' type 'const unsigned char'
/usr/include/mysql++/type_info1.hh:29: error: uninitialized member '
mysql_ti_sql_type_info::_default' with 'const' type 'const bool' |
bauen.h sowie bauen.cpp sind dabei meine Dateien.
Die zugehörige Befehlszeile ist:
Code: | g++ -o bauen -I/usr/include/mysql++ -I/usr/include/mysql -lsqlplus -lmysqlclient -lpthread bauen.cpp
|
Das beste an der Sache ist, dass es vor ca. 2 Monaten funktuioniert hat und ich problemlos compilieren konnte. Allerdings ruhte das Projekt aus Zeitgründen 2 Monate und nun geht es nicht mehr. In der Zwischenzeit habe ich ab und zu ein emerge -u world gemacht.
Irgendwelche Lösungsvorschläge?
Frost |
|
Back to top |
|
|
|