Rechercher : dans
Par :

Comment utiliser dev c++

Dernière réponse le 24 déc 2007 à 05:16:50 amine-mah, le 8 déc 2007 à 17:34:35 
 Signaler ce message aux modérateurs

Bonjour,
j'utilise le langage c j'esséy d'aficher un message simple en utilisant printf , sa se compile mais a l'éxecution sa n'affiche rien
qu'est ce que j'ai oublier de faire ????????

Configuration: Windows XP
Internet Explorer 6.0

Meilleures réponses pour « comment utiliser dev c++ » dans :
Compiler un programme en C avec Dev C++ sous Vista Voir Il est très probable que vous ayez des problèmes lors de la compilation d'une source C sous Vista avec Dev C++. Solution rapide de secours: le compilateur g++ Voici une astuce pour Dev-Cpp : Aller dans "Outils" -> "Options du compilateur" puis...

1

pascal.barbier, le 8 déc 2007 à 17:39:18
  • +1

Regarde en bas de la fenêtre il doit y avoir un onglet intitulé "log de compilation".
Dedans tu auras probablement des messages d'erreur. Dev C++ a la facheuse habitude de ne pas voir tous les messages d'erreur du compilateur.

Répondre à pascal.barbier

2

naruto-94, le 8 déc 2007 à 17:41:58

Quel est le code exact que tu as mis ?

le code exacte est :

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{

printf("Hello World\n");
  
  getch();	
  return 0;
}
- [ Juck'n0 ]-

Répondre à naruto-94

3

perenono18, le 24 déc 2007 à 05:10:19

Bonjour,

je suis nouveau avec dev c++ !! j'éssaie juste avec le code minimal, en console application, de faire apparaître le programme !!
Après avoir lancé la compilation et l'exécution, j'ai un message qui m'indique 133 érreurs !!

Compilateur: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Exécution de make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
gcc.exe -c main.c -o main.o -I"C:/Dev-Cpp/include"

In file included from C:/Dev-Cpp/include/stdio.h:26,
from main.c:1:
C:/Dev-Cpp/include/stddef.h:6:24: stddef.h: No such file or directory
In file included from C:/Dev-Cpp/include/stdio.h:28,
from main.c:1:
C:/Dev-Cpp/include/stdarg.h:6:24: stdarg.h: No such file or directory
In file included from main.c:1:
C:/Dev-Cpp/include/stdio.h:198: error: syntax error before "size_t"

C:/Dev-Cpp/include/stdio.h:209: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdio.h:210: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:211: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:212: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:213: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdio.h:216: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdio.h:216: warning: conflicting types for built-in function 'snprintf'
C:/Dev-Cpp/include/stdio.h:218: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdio.h: In function `vsnprintf':
C:/Dev-Cpp/include/stdio.h:219: error: `s' undeclared (first use in this function)
C:/Dev-Cpp/include/stdio.h:219: error: (Each undeclared identifier is reported only once
C:/Dev-Cpp/include/stdio.h:219: error: for each function it appears in.)
C:/Dev-Cpp/include/stdio.h:219: error: `n' undeclared (first use in this function)
C:/Dev-Cpp/include/stdio.h:219: error: `format' undeclared (first use in this function)
C:/Dev-Cpp/include/stdio.h:219: error: `arg' undeclared (first use in this function)
C:/Dev-Cpp/include/stdio.h: At top level:
C:/Dev-Cpp/include/stdio.h:220: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:222: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:224: error: syntax error before "__gnuc_va_list"
C:/Dev-Cpp/include/stdio.h:297: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:297: error: syntax error before "fread"
C:/Dev-Cpp/include/stdio.h:298: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:298: error: syntax error before "fwrite"

In file included from main.c:1:
C:/Dev-Cpp/include/stdio.h:428: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:429: error: syntax error before '*' token

C:/Dev-Cpp/include/stdio.h:430: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:431: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:432: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:433: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:434: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:435: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:436: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:437: error: syntax error before '*' token

C:/Dev-Cpp/include/stdio.h:438: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:439: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:439: error: syntax error before "fgetwc"
C:/Dev-Cpp/include/stdio.h:440: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:440: error: syntax error before "fputwc"
C:/Dev-Cpp/include/stdio.h:441: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:441: error: syntax error before "ungetwc"
C:/Dev-Cpp/include/stdio.h:444: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:444: warning: data definition has no type or storage class

C:/Dev-Cpp/include/stdio.h:445: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:446: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:446: error: syntax error before "getwc"
C:/Dev-Cpp/include/stdio.h:447: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:447: error: syntax error before "getwchar"
C:/Dev-Cpp/include/stdio.h:448: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:448: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdio.h:449: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:449: error: syntax error before "putwc"
C:/Dev-Cpp/include/stdio.h:450: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:451: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:451: error: syntax error before "putwchar"
C:/Dev-Cpp/include/stdio.h:452: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdio.h:453: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:454: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:455: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:456: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:456: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:456: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdio.h:457: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:457: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:457: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdio.h:458: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:459: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:460: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:461: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:465: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:467: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h: In function `vsnwprintf':
C:/Dev-Cpp/include/stdio.h:468: error: `s' undeclared (first use in this function)
C:/Dev-Cpp/include/stdio.h:468: error: `n' undeclared (first use in this function)
C:/Dev-Cpp/include/stdio.h:468: error: `format' undeclared (first use in this function)
C:/Dev-Cpp/include/stdio.h:468: error: `arg' undeclared (first use in this function)
C:/Dev-Cpp/include/stdio.h: At top level:
C:/Dev-Cpp/include/stdio.h:469: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:471: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:472: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:482: error: syntax error before '*' token
C:/Dev-Cpp/include/stdio.h:489: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:489: error: syntax error before "_fgetwchar"
C:/Dev-Cpp/include/stdio.h:490: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:490: error: syntax error before "_fputwchar"
C:/Dev-Cpp/include/stdio.h:495: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:495: error: syntax error before "fgetwchar"
C:/Dev-Cpp/include/stdio.h:496: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdio.h:496: error: syntax error before "fputwchar"

In file included from main.c:2:
C:/Dev-Cpp/include/stdlib.h:80: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:80: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdlib.h:151: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:151: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdlib.h:263: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:263: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdlib.h:308: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:309: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:323: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:325: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h: In function `wcstof':
C:/Dev-Cpp/include/stdlib.h:326: error: `nptr' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h:326: error: `endptr' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h: At top level:
C:/Dev-Cpp/include/stdlib.h:327: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:330: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:331: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:335: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdlib.h:335: error: syntax error before "wcstombs"
C:/Dev-Cpp/include/stdlib.h:336: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:338: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:339: warning: `__cdecl__' attribute only applies to function types
C:/Dev-Cpp/include/stdlib.h:339: error: syntax error before "mbstowcs"
C:/Dev-Cpp/include/stdlib.h:340: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:345: warning: parameter names (without types) in function declaration
C:/Dev-Cpp/include/stdlib.h:346: warning: parameter names (without types) in function declaration
C:/Dev-Cpp/include/stdlib.h:347: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:360: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:361: error: syntax error before ')' token
C:/Dev-Cpp/include/stdlib.h:362: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:363: error: syntax error before ')' token
C:/Dev-Cpp/include/stdlib.h:409: error: syntax error before "size_t"
C:/Dev-Cpp/include/stdlib.h:414: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:414: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:414: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdlib.h:415: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:415: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:415: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdlib.h:416: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:416: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:416: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdlib.h:422: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:423: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:423: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:423: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdlib.h:424: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:424: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:424: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdlib.h:426: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:426: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:426: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdlib.h:427: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:428: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:429: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:430: error: syntax error before '*' token

C:/Dev-Cpp/include/stdlib.h:431: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:431: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:431: warning: data definition has no type or storage class

C:/Dev-Cpp/include/stdlib.h:481: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:484: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:484: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:484: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdlib.h:485: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:485: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h:485: warning: data definition has no type or storage class
C:/Dev-Cpp/include/stdlib.h:494: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h: In function `wtoll':
C:/Dev-Cpp/include/stdlib.h:495: error: `_w' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h: At top level:
C:/Dev-Cpp/include/stdlib.h:496: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:496: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h: In function `lltow':

C:/Dev-Cpp/include/stdlib.h:497: error: `_n' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h:497: error: `_w' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h:497: error: `_i' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h: At top level:
C:/Dev-Cpp/include/stdlib.h:498: error: syntax error before '*' token
C:/Dev-Cpp/include/stdlib.h:498: error: syntax error before "wchar_t"
C:/Dev-Cpp/include/stdlib.h: In function `ulltow':

C:/Dev-Cpp/include/stdlib.h:499: error: `_n' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h:499: error: `_w' undeclared (first use in this function)
C:/Dev-Cpp/include/stdlib.h:499: error: `_i' undeclared (first use in this function)

make.exe: *** [main.o] Error 1

Exécution terminée

qu'est ce qui c'est passé ? que doi-je faire ? À l'aide !!! :s:s

Répondre à perenono18

4

 perenono18, le 24 déc 2007 à 05:16:50

O fèt, mon OS, c Vista !!!!
g déja déplacé cc1,cc1+ é collect2 !! ché plu koi fèr !!

Répondre à perenono18
Collection CommentÇaMarche.net