begin process at 2012 02 09 21:38:39
  Trouver un code source :
 
dans
 
Accueil > Forum > 

Archive C/C++

 > 

Archives

 > 

Au secours

 > 

Pb mysqlclient dev-cpp


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

Pb mysqlclient dev-cpp

lundi 6 décembre 2004 à 14:36:54 | Pb mysqlclient dev-cpp

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
lundi 6 décembre 2004 à 17:19:31 | Re : Pb mysqlclient dev-cpp

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
lundi 6 décembre 2004 à 17:48:16 | Re : Pb mysqlclient dev-cpp

dragonryu

c'est la premiere fois que te sers de devcpp?
lundi 6 décembre 2004 à 18:41:46 | Re : Pb mysqlclient dev-cpp

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
mardi 7 décembre 2004 à 10:34:02 | Re : Pb mysqlclient dev-cpp

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
mardi 7 décembre 2004 à 13:10:50 | Re : Pb mysqlclient dev-cpp

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
mardi 7 décembre 2004 à 14:19:48 | Re : Pb mysqlclient dev-cpp

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
mardi 7 décembre 2004 à 15:52:33 | Re : Pb mysqlclient dev-cpp

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
mardi 7 décembre 2004 à 16:09:11 | Re : Pb mysqlclient dev-cpp

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
mercredi 8 décembre 2004 à 09:37:13 | Re : Pb mysqlclient dev-cpp

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.

1 2

Cette discussion est classée dans : pb, dev, cpp, mysqlclient


Répondre à ce message

Sujets en rapport avec ce message

Pb dev-cpp et winxp [ par titizebioutifoul ] Depuis peu de temps je suis passer à Win xp et j'ai donc réinstaller dev-c++. Mais je ne trouve pas d'autoexec.bat à modifier et lorsque je compile j' Pb avec DEV CPP [ par idra ] Bonjour,J'ai un p'tit souci avec dev cpp. Le projet que j'ai créé compile et s'execute bien sur mon poste. Par contre dès que je change de poste (ou d Pb conio.h + Dev C++ [ par Laurent0228 ] Salut.J'ai des tonnes d'erreur avec un code qui fonction tres bien sous Turbo c++ 3.0,mais si je le mais sous Dev c++ je n'ai que des erreurs, j'ai bi Paquets wxWidgets 2.5.2 pour Dev-Cpp [ par fredcl ] Pour ceux que cela interresse.Voici des devPak pour Dev-Cpp du Framework wxWidgetsIls sont fait avec la version 2.5.2 CVS du 12/09/2004http://cfred.fr Devpack wxWidgets 2.5.4 pour Dev-Cpp 4.9.9.2 [ par fredcl ] Bonjour a tous,pour ceux que celà interresse les devpack de wxWidgets 2.5.4 pour Dev-Cpp 4.9.9.2 (dernière version) sont disponible sur mon sitehttp:/ [Dev-cpp] ActiveX [ par zippro4012 ] Peux on faire référence a une dll ActiveX en C++ ? [Dev-Cpp] Multiples fichiers .cpp [ par Rouliann ] Bonjour tout le monde! Je programme actuellement un petit Pacman (que vous pouvez voir ici) et comme je n'avais qu'un fichier .cpp (le fichier main) e [Dev-cpp] Connaitre le nom de l'exe [ par zippro4012 ] Comment connaitre le dossier et le nom du fichier de sa propre application ? Merçi a ceux qui me répondront. [dev-cpp] Dossiers et fichiers [ par zippro4012 ] Comment énumérer les fichiers d'un dossier ? Comment énumérer les dossiers d'un dossier ? Enfin, comment savoir si un fichier existe ? En fait, je che Fmod et dev-cpp 4.9.9.2 [ par kujad ] Bonjour, je vais être clair : FMUSIC_StopSong(zik);     SDL_Quit;        return 0;quand je compile mon code l'erreur vient d'ici, j'utilise dev c++ 4.


Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 2,044 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales