Compilation avec Code::Blocks

Compilation avec Code::Blocks - C - Programmation

Marsh Posté le 07-11-2007 à 15:45:30    

Salut à tous,
J'aurai tout essayé pour faire marcher Code:Blocks sous mon Vista (installation normale, puis avec les nightly-builds, puis avec les divers tutos qui fleurissent partout...), mais voilà mon problème actuel. Quand je veux compiler (même le truc de base écrit sur main.c) un nouveau projet placé dans un répertoire perso, voilà ce que ça me met (ça paraît gros comme ça, mais ça va vite à lire ^^) :
 
" Project   : Console application
Compiler  : GNU GCC Compiler (called directly)
Directory : D:\Programmation\C\Test\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: main.c
In file included from C:/MinGW/include/stdio.h:42,
                 from main.c:1:
C:/MinGW/include/stddef.h:6:24: no include path in which to find stddef.h
In file included from C:/MinGW/include/stdio.h:44,
                 from main.c:1:
C:/MinGW/include/stdarg.h:6:24: no include path in which to find stdarg.h
In file included from main.c:1:
C:/MinGW/include/stdio.h:206: parse error before "size_t"
C:/MinGW/include/stdio.h:217: parse error before "size_t"
C:/MinGW/include/stdio.h:218: parse error before "__gnuc_va_list"
C:/MinGW/include/stdio.h:219: parse error before "__gnuc_va_list"
C:/MinGW/include/stdio.h:220: parse error before "__gnuc_va_list"
C:/MinGW/include/stdio.h:221: parse error before "size_t"
C:/MinGW/include/stdio.h:224: parse error before "size_t"
C:/MinGW/include/stdio.h:226: parse error before "size_t"
C:/MinGW/include/stdio.h: In function `vsnprintf':
C:/MinGW/include/stdio.h:227: `s' undeclared (first use in this function)
C:/MinGW/include/stdio.h:227: (Each undeclared identifier is reported only once
C:/MinGW/include/stdio.h:227: for each function it appears in.)
C:/MinGW/include/stdio.h:227: `n' undeclared (first use in this function)
C:/MinGW/include/stdio.h:227: `format' undeclared (first use in this function)
C:/MinGW/include/stdio.h:227: `arg' undeclared (first use in this function)
C:/MinGW/include/stdio.h: At top level:
C:/MinGW/include/stdio.h:228: parse error before "__gnuc_va_list"
C:/MinGW/include/stdio.h:230: parse error before "__gnuc_va_list"
C:/MinGW/include/stdio.h:232: parse error before "__gnuc_va_list"
C:/MinGW/include/stdio.h:262: warning: `__cdecl__' attribute only applies to function types
C:/MinGW/include/stdio.h:262: parse error before "fread"
C:/MinGW/include/stdio.h:263: warning: `__cdecl__' attribute only applies to function types
C:/MinGW/include/stdio.h:263: parse error before "fwrite"
C:/MinGW/include/stdio.h:352: parse error before '*' token
C:/MinGW/include/stdio.h:353: parse error before '*' token
C:/MinGW/include/stdio.h:354: parse error before '*' token
C:/MinGW/include/stdio.h:355: parse error before '*' token
C:/MinGW/include/stdio.h:356: parse error before '*' token
C:/MinGW/include/stdio.h:357: parse error before '*' token
C:/MinGW/include/stdio.h:358: parse error before '*' token
C:/MinGW/include/stdio.h:359: parse error before '*' token
C:/MinGW/include/stdio.h:360: parse error before '*' token
C:/MinGW/include/stdio.h:361: parse error before '*' token
C:/MinGW/include/stdio.h:362: parse error before '*' token
C:/MinGW/include/stdio.h:363: warning: `__cdecl__' attribute only applies to function types
C:/MinGW/include/stdio.h:363: parse error before "fgetwc"
C:/MinGW/include/stdio.h:364: warning: `__cdecl__' attribute only applies to function types
C:/MinGW/include/stdio.h:364: parse error before "fputwc"
C:/MinGW/include/stdio.h:365: warning: `__cdecl__' attribute only applies to function types
C:/MinGW/include/stdio.h:365: parse error before "ungetwc"
C:/MinGW/include/stdio.h:368: parse error before '*' token
C:/MinGW/include/stdio.h:368: warning: data definition has no type or storage class
C:/MinGW/include/stdio.h:369: parse error before '*' token
C:/MinGW/include/stdio.h:370: warning: `__cdecl__' attribute only applies to function types
C:/MinGW/include/stdio.h:370: parse error before "getwc"
C:/MinGW/include/stdio.h:371: warning: `__cdecl__' attribute only applies to function types
C:/MinGW/include/stdio.h:371: parse error before "getwchar"
C:/MinGW/include/stdio.h:372: parse error before '*' token
C:/MinGW/include/stdio.h:372: warning: data definition has no type or storage class
C:/MinGW/include/stdio.h:373: warning: `__cdecl__' attribute only applies to function types
C:/MinGW/include/stdio.h:373: parse error before "putwc"
C:/MinGW/include/stdio.h:374: parse error before '*' token
C:/MinGW/include/stdio.h:375: warning: `__cdecl__' attribute only applies to function types
C:/MinGW/include/stdio.h:375: parse error before "putwchar"
C:/MinGW/include/stdio.h:376: parse error before "wchar_t"
C:/MinGW/include/stdio.h:377: parse error before '*' token
C:/MinGW/include/stdio.h:378: parse error before '*' token
C:/MinGW/include/stdio.h:379: parse error before '*' token
C:/MinGW/include/stdio.h:380: parse error before '*' token
C:/MinGW/include/stdio.h:380: parse error before '*' token
C:/MinGW/include/stdio.h:380: warning: data definition has no type or storage class
C:/MinGW/include/stdio.h:381: parse error before '*' token
Process terminated with status 1 (0 minutes, 2 seconds) "
 
Voilà, étant un débutant en C, je ne capte pas grand-chose...
J'ai installé Code::Blocks et MinGW séparément, puis j'ai déplacé deux ou trois fichiers pour que ça "marche" vous Vista... Bref, j'ai suivi les tutos. Pour info, quand j'essaie la MEME manip' avec un projet enregistré sur le Bureau, ça marche. O_o
Merci à qui pourra m'aider. ^^
 
EDIT : tiens, c'est mignon, je savais pas qu'un même smiley était limité à dix utilisations par post. :D

Message cité 1 fois
Message édité par Vos_01 le 07-11-2007 à 15:46:36
Reply

Marsh Posté le 07-11-2007 à 15:45:30   

Reply

Marsh Posté le 08-11-2007 à 16:38:40    

Vos_01 a écrit :

Salut à tous,
J'aurai tout essayé pour faire marcher Code:Blocks sous mon Vista


Marche pas 'naturellement'. Il y a des réglages à faire. Ce sujet est largement traité sur developpez.com ou le Site du Zéro...

 

(et je signale que tu peux "désactiver les smileys"...)

 



Message édité par Emmanuel Delahaye le 08-11-2007 à 16:39:16

---------------
Des infos sur la programmation et le langage C: http://www.bien-programmer.fr Pas de Wi-Fi à la maison : http://www.cpl-france.org/
Reply

Marsh Posté le 08-11-2007 à 18:14:28    

Quand je dis que j'ai tout essayé, je parle justement de ces manips et des diverses méthodes d'installation... ^^

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed