begin process at 2008 07 20 23:19:01
1 213 505 membres
406 nouveaux aujourd'hui
14 167 membres club

Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum.
Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

Sujet : Pb mysqlclient dev-cpp [ Archives / Au secours ] (biglulu77420)

Pb mysqlclient dev-cpp le 06/12/2004 14:36:54

biglulu77420
Bonjour,
je suis débutant en C, je voudrait pouvoir insérer des enregistrement dans ma base de données mysql ...
J'ai récupérer des soucres, et au moment de la compilation, il me dit "la source n'a pas encore été compilé" ...
Je ne comprends pas pourquoi ???

Pourriez vous m'aider


Biglulu77420

Re : Pb mysqlclient dev-cpp le 06/12/2004 17:19:31

fredcl
heu il a rien dit d'autre avant?
Ouvre ton projet avec Dev-Cpp puis appuis sur F9 et regarde ce qui se passe et poste les messages d'erreur si problème.

A+

Fred

Re : Pb mysqlclient dev-cpp le 06/12/2004 17:48:16

dragonryu
c'est la premiere fois que te sers de devcpp?

Re : Pb mysqlclient dev-cpp le 06/12/2004 18:41:46

biglulu77420
Oui c'est la première fois que je poste quelques choses ...

En fait je pense avoir identifier le problème ... le soucis vient de mysql_init() et des threads apparemment ... Je posterais demain les messages d'erreurs.

En tout cas merci d'avoir répondu. c'est gentil

Biglulu77420

Re : Pb mysqlclient dev-cpp le 07/12/2004 10:34:02

biglulu77420
Voila mes erreurs quand je compile :

Compilateur: Default compiler
Exécution de gcc.exe...
gcc.exe "F:\Ludovic\Prg C\FINAUX\Dom\dom.c" -o "F:\Ludovic\Prg C\FINAUX\Dom\dom.exe" -I"C:\Dev-Cpp\include" -I"C:\mysql\include" -L"C:\Dev-Cpp\lib" -L"C:\mysql\lib\opt" -lmysqlclient -lws2_32
C:\mysql\lib\opt\mysqlclient.lib(./release/client.obj)(.text+0x2cf):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/my_thr_init.obj)(.text+0x1e):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0x1bb):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0x2cf):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0x40c):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0x38):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0xd2):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0xfd):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0x121):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0x12f):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/my_messnc.obj)(.text+0x1):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/my_messnc.obj)(.text+0x16):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/my_messnc.obj)(.text+0x2e):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.

C:\mysql\lib\opt\mysqlclient.lib(./release/my_messnc.obj)(.text+0x39):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/my_messnc.obj)(.text+0x4f):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/my_messnc.obj)(.text+0x5a):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
C:\mysql\lib\opt\mysqlclient.lib(./release/my_messnc.obj)(.text+0x66):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.

Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized

Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized

Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized

Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized

Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized

Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
Warning: .drectve `%.*s' unrecognized
C:\mysql\lib\opt\mysqlclient.lib(./release/longlong2str.obj)(.text+0xa5):C:\cygwin\home\mys: undefined reference to `_aulldiv'
C:\mysql\lib\opt\mysqlclient.lib(./release/longlong2str.obj)(.text+0x69):C:\cygwin\home\mys: undefined reference to `_aulldiv'
C:\mysql\lib\opt\mysqlclient.lib(./release/default.obj)(.text+0x6):C:\cygwin\home\mys: undefined reference to `_chkstk'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-simple.obj)(.text+0x6e):C:\cygwin\home\mys: undefined reference to `_aulldiv'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-simple.obj)(.text+0x81):C:\cygwin\home\mys: undefined reference to `_aullrem'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-simple.obj)(.text+0xf1):C:\cygwin\home\mys: undefined reference to `_allmul'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-simple.obj)(.text+0x6e):C:\cygwin\home\mys: undefined reference to `_aulldiv'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-simple.obj)(.text+0x81):C:\cygwin\home\mys: undefined reference to `_aullrem'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-simple.obj)(.text+0xf1):C:\cygwin\home\mys: undefined reference to `_allmul'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-simple.obj)(.text+0x87):C:\cygwin\home\mys: undefined reference to `_aulldiv'
C:\mysql\lib\opt\mysqlclient.lib(./release/my_strtoll10.obj)(.text+0x226):C:\cygwin\home\mys: undefined refereInfo: resolving __iob by linking to __imp___iob (auto-import)
Info: resolving __pctype by linking to __imp___pctype (auto-import)
Info: resolving ___mb_cur_max by linking to __imp____mb_cur_max (auto-import)

nce to `_allmul'
C:\mysql\lib\opt\mysqlclient.lib(./release/my_strtoll10.obj)(.text+0x24d):C:\cygwin\home\mys: undefined reference to `_allmul'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-ucs2.obj)(.text+0x86):C:\cygwin\home\mys: undefined reference to `_aulldiv'

C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-ucs2.obj)(.text+0x9d):C:\cygwin\home\mys: undefined reference to `_aullrem'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-ucs2.obj)(.text+0x129):C:\cygwin\home\mys: undefined reference to `_allmul'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-ucs2.obj)(.text+0x86):C:\cygwin\home\mys: undefined reference to `_aulldiv'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-ucs2.obj)(.text+0x9d):C:\cygwin\home\mys: undefined reference to `_aullrem'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-ucs2.obj)(.text+0x129):C:\cygwin\home\mys: undefined reference to `_allmul'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-ucs2.obj)(.text+0x5c):C:\cygwin\home\mys: undefined reference to `_aulldiv'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-ucs2.obj)(.text+0x249):C:\cygwin\home\mys: undefined reference to `_allmul'
C:\mysql\lib\opt\mysqlclient.lib(./release/ctype-ucs2.obj)(.text+0x270):C:\cygwin\home\mys: undefined reference to `_allmul'

fu000002.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000003.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000005.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000006.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
nmth000000.o(.idata$4+0x0): undefined reference to `_nm___iob'
nmth000001.o(.idata$4+0x0): undefined reference to `_nm___pctype'
nmth000004.o(.idata$4+0x0): undefined reference to `_nm____mb_cur_max'

Exécution terminée


Biglulu77420

Re : Pb mysqlclient dev-cpp le 07/12/2004 13:10:50

fredcl
ça ressemble à une erreur quer j'avais eu avec wxWidgets ou il manquait une définition (avec -D) dans les paramètres du compilateur C++ (quatrième onglet des options du projet).
Maintenant il faudrais que tu cherches dans les entêtes de la lib mysqlclient si tu vois ce qui doit être défini dans les options.


A+

FredCL

Re : Pb mysqlclient dev-cpp le 07/12/2004 14:19:48

biglulu77420
Je commence a etre complement perdu ... je n'y comprends plus rien.
Apparement c'est les librairies de devcpp qui ne se sont pas bonne...
Tu aurais pas une idee pour m'aider a avencé...

Biglulu77420

Re : Pb mysqlclient dev-cpp le 07/12/2004 15:52:33

fredcl
Normalement tu devrais avoir dans le répertoire examples de Dev-Cpp un répertoire MySQLClientTest.
C'est un exemple d'utilisation de la lib pour MySQL.

est-ce que tu arrive à compiler cet exemple avec le fichier projet fourni (MySQLClientTest.dev) ?


A+

FredCL

Re : Pb mysqlclient dev-cpp le 07/12/2004 16:09:11

biglulu77420
OK

On vient de m'expliquer où était mon problème, en fait il fallait je créé libmysqlclient.a avec la commande reimp.exe ...

Maintenant ca fonctionne.

Merci beaucoup pour ton aide.


Biglulu77420

Re : Pb mysqlclient dev-cpp le 08/12/2004 09:37:13

fredcl
Bonjour,

c'est curieux car le devpack pour MySQL que l'on peut récupérer avec l'outils/nouvelle version,packages est tout a fait correct et fonctionne parfaitement.


[Page 1 Page 2]
Classé sous : pb, dev, cpp, mysqlclient

Participer à cet échange

Livres en rapport

Pub



Appels d'offres

Dessins techniques
Budget : 60€
Animation Flash - Doma...
Budget : 370€
Application flash medi...
Budget : 1 000€

CalendriCode

Juillet 2008
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

VS Express FR Gratuit !

VS Express en français et 100% gratuit !

Téléchargements

Logiciels à télécharger sur le même thème :

Boutique

Boutique de goodies CodeS-SourceS