Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1452 connectés 

  FORUM HardWare.fr
  Programmation
  C

  Compilation avec Code::Blocks

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Compilation avec Code::Blocks

n°1638368
Vos_01
Posté le 07-11-2007 à 15:45:30  profilanswer
 

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
mood
Publicité
Posté le 07-11-2007 à 15:45:30  profilanswer
 

n°1639339
Emmanuel D​elahaye
C is a sharp tool
Posté le 08-11-2007 à 16:38:40  profilanswer
 

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/
n°1639470
Vos_01
Posté le 08-11-2007 à 18:14:28  profilanswer
 

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


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  C

  Compilation avec Code::Blocks

 

Sujets relatifs
Obtenir le code source d'une page externeBug dans mon code...pourquoi ?
Code pour afficher une seule catégorie dans une page wordpresscode vb et page html
Probleme de compilationpseudo code
[HTML/PHP] Erreur simple dans code, mais introuvableManipuler une variable Java dans du code Javascript
Manipuler un tableau Java dans du code Javascript[Windows Sokets] {résolu} un prob de compilation avec code::blocks
Plus de sujets relatifs à : Compilation avec Code::Blocks


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR