1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
--------------------
- MAIN.o -
--------------------
CC -xtarget=ultra -xarch=v8 -I/home/xxx/libSql/include/ -I/home/xxx/libSql/include/mysql/ -o bin/main.o -c main.cc
--------------------
- LibSQL.o -
--------------------
CC -xtarget=ultra -xarch=v8 -I/home/xxx/libSql/include/ -I/home/xxx/libSql/include/mysql/ -o bin/LibSql.o -c src/LibSql.cc
--------------------
- MAIN -
--------------------
CC -o main -Bstatic bin/main.o bin/LibSql.o -xtarget=ultra -xarch=v8 -L/home/xxx/libSql/lib/ -lmysqlclient -lz
ld: warning: file /home/xxx/libSql/lib//libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64
Undefined first referenced
symbol in file
mysql_rollback bin/LibSql.o
mysql_stmt_init bin/LibSql.o
mysql_close bin/LibSql.o
mysql_fetch_lengths bin/LibSql.o
mysql_num_fields bin/LibSql.o
mysql_num_rows bin/LibSql.o
mysql_fetch_row bin/LibSql.o
mysql_real_query bin/LibSql.o
mysql_real_connect bin/LibSql.o
mysql_commit bin/LibSql.o
mysql_stmt_close bin/LibSql.o
mysql_fetch_field bin/LibSql.o
mysql_stmt_error bin/LibSql.o
mysql_stmt_execute bin/LibSql.o
mysql_autocommit bin/LibSql.o
mysql_errno bin/LibSql.o
mysql_stmt_param_count bin/LibSql.o
mysql_error bin/LibSql.o
mysql_store_result bin/LibSql.o
mysql_affected_rows bin/LibSql.o
mysql_stmt_prepare bin/LibSql.o
mysql_stmt_bind_param bin/LibSql.o
mysql_init bin/LibSql.o
ld: fatal: Symbol referencing errors. No output written to main
*** Error code 1
make: Fatal error: Command failed for target `main' |
Bon y'a ça de nouveau :
ld: warning: file /home/xxx/libSql/lib//libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64
Normallement, je suis en SPARC et en 64 Bits. J'ai vérifié en faisant 'version'. Pour le 64 bits, j'ai fait 'isainfo -b' et il me retourne 64.
1 2 3 4
| Machine hardware: sun4u
OS version: 5.8
Processor type: sparc
Hardware: SUNW,Sun-Blade-1000 |
Donc j'ai télécharger ce fichier http://dev.mysql.com/get/Downloads/M....fr/pub/MySQL/ et j'ai copié l'ensemble des fichiers du répertoire lib, dans le répertoire lib de mon projet ... Malgré cela on dirait une erreur d'architecture 32/64, non ?
Les options de compilation vous semblent-t-elles correctes pour du 64 bits ?
Merci de m'aider car je patauge sur le problème depuis plus d'une journée maintenant ...
Partager