Compilation avec Code::Blocks - C - Programmation
Marsh Posté le 08-11-2007 à 16:38:40
Vos_01 a écrit : Salut à tous, |
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"...)
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... ^^
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 CMinGW/include/stdio.h:42,
from main.c:1:
CMinGW/include/stddef.h:6:24: no include path in which to find stddef.h
In file included from CMinGW/include/stdio.h:44,
from main.c:1:
CMinGW/include/stdarg.h:6:24: no include path in which to find stdarg.h
In file included from main.c:1:
CMinGW/include/stdio.h:206: parse error before "size_t"
CMinGW/include/stdio.h:217: parse error before "size_t"
CMinGW/include/stdio.h:218: parse error before "__gnuc_va_list"
CMinGW/include/stdio.h:219: parse error before "__gnuc_va_list"
CMinGW/include/stdio.h:220: parse error before "__gnuc_va_list"
CMinGW/include/stdio.h:221: parse error before "size_t"
CMinGW/include/stdio.h:224: parse error before "size_t"
CMinGW/include/stdio.h:226: parse error before "size_t"
CMinGW/include/stdio.h: In function `vsnprintf':
CMinGW/include/stdio.h:227: `s' undeclared (first use in this function)
CMinGW/include/stdio.h:227: (Each undeclared identifier is reported only once
CMinGW/include/stdio.h:227: for each function it appears in.)
CMinGW/include/stdio.h:227: `n' undeclared (first use in this function)
CMinGW/include/stdio.h:227: `format' undeclared (first use in this function)
CMinGW/include/stdio.h:227: `arg' undeclared (first use in this function)
CMinGW/include/stdio.h: At top level:
CMinGW/include/stdio.h:228: parse error before "__gnuc_va_list"
CMinGW/include/stdio.h:230: parse error before "__gnuc_va_list"
CMinGW/include/stdio.h:232: parse error before "__gnuc_va_list"
CMinGW/include/stdio.h:262: warning: `__cdecl__' attribute only applies to function types
CMinGW/include/stdio.h:262: parse error before "fread"
CMinGW/include/stdio.h:263: warning: `__cdecl__' attribute only applies to function types
CMinGW/include/stdio.h:263: parse error before "fwrite"
CMinGW/include/stdio.h:352: parse error before '*' token
CMinGW/include/stdio.h:353: parse error before '*' token
CMinGW/include/stdio.h:354: parse error before '*' token
CMinGW/include/stdio.h:355: parse error before '*' token
CMinGW/include/stdio.h:356: parse error before '*' token
CMinGW/include/stdio.h:357: parse error before '*' token
CMinGW/include/stdio.h:358: parse error before '*' token
CMinGW/include/stdio.h:359: parse error before '*' token
CMinGW/include/stdio.h:360: parse error before '*' token
CMinGW/include/stdio.h:361: parse error before '*' token
CMinGW/include/stdio.h:362: parse error before '*' token
CMinGW/include/stdio.h:363: warning: `__cdecl__' attribute only applies to function types
CMinGW/include/stdio.h:363: parse error before "fgetwc"
CMinGW/include/stdio.h:364: warning: `__cdecl__' attribute only applies to function types
CMinGW/include/stdio.h:364: parse error before "fputwc"
CMinGW/include/stdio.h:365: warning: `__cdecl__' attribute only applies to function types
CMinGW/include/stdio.h:365: parse error before "ungetwc"
CMinGW/include/stdio.h:368: parse error before '*' token
CMinGW/include/stdio.h:368: warning: data definition has no type or storage class
CMinGW/include/stdio.h:369: parse error before '*' token
CMinGW/include/stdio.h:370: warning: `__cdecl__' attribute only applies to function types
CMinGW/include/stdio.h:370: parse error before "getwc"
CMinGW/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.
Message édité par Vos_01 le 07-11-2007 à 15:46:36