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

  FORUM HardWare.fr
  Programmation
  C++

  Code Blocks & Vista...

 


 Mot :   Pseudo :  
 
 Page :   1  2
Page Précédente
Auteur Sujet :

Code Blocks & Vista...

n°1526910
cyber81
Posté le 10-03-2007 à 20:33:11  profilanswer
 

Bonjour les gens,
 
Je viens d'acheter un nouveau portable sous Vista et je n'arrive pas a faire fonctionner Code Blocks... Et il semblerait qu'il n'y ait pas que moi qui ai ce probleme. Je voulais savoir s'il y avait une solution au message d'erreur suivant :
 
mingw32-gcc.exe: installation problem, cannot exec `cc1': No such file or directory
 
C'est ce qui apparait quand je veut compiler......
J'ai lu qu'il fallait peut etre copier les fichiers cc1 et cc1plus presents dans C:\Program Files\CodeBlocks\libexec\gcc\mingw32\3.4.4 dans C:\Program Files\CodeBlocks\bin. J'ai donc essayé et ca ne semble pas marcher car j'ai des tonnes d'erreurs qui apparaissent!
 
J'ai aussi essayé dans "variables systeme" de modifier "PATH" ne sachant pas trop a quoi tout ca correspond...
J'y ai ajouté ;C:\Program Files\CodeBlocks\libexec\gcc\mingw32\3.4.4 a la suite de ce qu'il y avait deja. Mais ca n'a pas changé grand chose : toujours le meme message d'erreur.
 
Si quelqu'un a une solution pour moi...... car il faudrait vraiment que je puisse utiliser CodeBlocks...
 
Merci

mood
Publicité
Posté le 10-03-2007 à 20:33:11  profilanswer
 

n°1530132
kheel
Posté le 18-03-2007 à 17:34:38  profilanswer
 

Oui ce problême est connu et malheureusement il n'y a pas de patch qui corrige ca pour le moment... il parait que c'est gcc qui n'aime pas la nouvelle mouture de microsoft.
 
J'ai ce probleme sous vista et j'utilise visual studio C++ sans trop de problemes malgrés le message d'avertissement de vista qui me prévient que le logiciel n'est pas totalement compatible (au moins un service de rapport d'erreur qui sert au autres...)
On espère que codeblocks se dote d'un patch qui corige ces problème dans peut de temps, je croise les doigts...

n°1530153
cyber81
Posté le 18-03-2007 à 18:38:43  profilanswer
 

ok oui croisons les doigts.
Quant a Visual studio C++, ca change beaucoup de Code Blocks ou po?
Je pense qu'en attendant je vais faire pareil...

n°1531262
zakinster
Posté le 20-03-2007 à 18:39:05  profilanswer
 

Salut les gars,
 
J'ai enfin réussi à compiler avec MinGW sous Windows Vista Ultimate 32bit,
Je sais pas si ça marchera pour tout le monde mais chez moi ça marche impeccable, j'ai réussi a compiler d'un "Hello World" en C à un début de MMORPG en C++ avec SDL et FMOD et tout compile et fonctionne parfaitement bien, même mieu qu'avec Visual Studio dont je me contentais jusqu'a maintenant.
 
Voilà comment j'ai procéder :  
 
- Installer tout les package de MinGW dans C:\MinGW http://www.mingw.org/download.shtml
- Installer Code::Blocks sans MinGW http://prdownloads.sourceforge.net [...] e?download
- Déplacer les fichiers suivant :
C:\MinGW\libexec\gcc\mingw32\3.4.5\cc1.exe => C:\MinGW\bin\cc1.exe
C:\MinGW\libexec\gcc\mingw32\3.4.5\cc1plus.exe => C:\MinGW\bin\cc1plus.exe
C:\MinGW\libexec\gcc\mingw32\3.4.5\collect2.exe => C:\MinGW\bin\collect2.exe
 
utilisez C:\MinGW\include et C:\MinGW\lib pour installer vos APIs
 
Chez moi ca fonctionne très bien, en esperant que ca marche pour vous ;)
 
PS : J'ai testé les exe compilé comme ça sous XP et aucun problème de ce coté là non plus
 
but it's just a workaround...  :jap:

n°1531875
karl3i
Posté le 21-03-2007 à 21:54:19  profilanswer
 

Salut,
 
dans le même cas que vous, contraint de repasser sous Visual C++ express en attendant. Mais l'intégration QT dans CodeBlocks me manque, de même que la configuration automatique du SDK.
Donc merci zakinster, je vais tester ça !
 
Karl3i.

n°1538134
karl3i
Posté le 03-04-2007 à 22:04:19  profilanswer
 

J'ai essayé ta solution Zakinster, ça a marché également pour moi.
Je n'ai pas fait exactement les mêmes manipulations (peut-être est-ce lié à la version de minGW).
De mon côté j'ai copié les fichiers cc1.exe et cc1plus.exe du répertoire C:\MinGW\lib\gcc-lib\mingw32\3.2.3 vers le répertoire C:\MinGW (chez moi le fichier collect2.exe n'existe pas).
J'ai pu compiler et lancer un projet sous CodeBlocks avec Vista.
Un grand merci à toi Zakinster :).
 

n°1540688
kheel
Posté le 10-04-2007 à 12:30:58  profilanswer
 

:sol: De même cela marche pour moi, ca fait plaisir de voir code::blocks compiler sous vista. :sol:  
 
Pour ceux qui ont du mal pour l'install de MinGW :  
     - prenez ça, version 5.1.2 ou 5.1.3, perso, la dernière plante à l'installation. Installez ça en full installation (current + download and install ), puis effectuez le copier/couper coller que zakinster a décrit et ça tourne!! :bounce:  
 
Un grand merci à toi Ô grand zakinster.

n°1544449
tr3sh
Posté le 18-04-2007 à 16:26:23  profilanswer
 

Slt, quel package faut il télécharger et installer le minGW qui plante pas à l'installation ?
merci

n°1544466
tr3sh
Posté le 18-04-2007 à 16:42:50  profilanswer
 

Slt, quel package faut il télécharger et installer pour installer le minGW qui plante pas à l'installation ?
merci

n°1573140
sajaris
Posté le 11-06-2007 à 11:53:40  profilanswer
 

Merci zakinster
Je voulais aussi preciser qu'il es necessaire de deplacer son repertoire de programmation(les fichier .c .cpp .h ....) sur la meme racine que mingw
.En tout cas je l'ai fait et il marchais sinon j'avais des tas d'erreur d'include et autres

mood
Publicité
Posté le 11-06-2007 à 11:53:40  profilanswer
 

n°1573145
sajaris
Posté le 11-06-2007 à 11:58:32  profilanswer
 

tr3sh, je sais pas si ca peut t'aider, sur le site de code block ils ont lister les packages a installer:
http://www.codeblocks.org/downloads.shtml
 
Je sais si tu l'a deja vu, mais c'est ce que j'ai telecharger.

n°1613595
Xezbeth
Posté le 20-09-2007 à 21:28:34  profilanswer
 

c'est quoi les APIs?

 

Edit: Arf, j'ai la compilation qui se passe mais j'ai pas le programme qui se lance...


Message édité par Xezbeth le 20-09-2007 à 21:30:39
n°1627894
electron-l​ibre
Posté le 20-10-2007 à 11:38:43  profilanswer
 

salut à tous  !!!
 
Je rencontre ce meme problème que ce soit avec code::block ou avec dev -c++ sous vista, impossible de compiler, il ne trouve le fichier cc1.
J'ai donc fait la manip d'écrite plus haut, mais la j'ai carrément 400 erreurs ...
 
un petit coup de main serait vraiment bien venu, car là je rame totalement, et pas moyen d'installer un autre os  
 
voila ce que je me tape apres avoir déplacé le fichier cc1:
 

Code :
  1. Compilateur: Default compiler
  2. Building Makefile: "C:\Dev-Cpp\Makefile.win"
  3. Exécution de  make...
  4. make.exe -f "C:\Dev-Cpp\Makefile.win" all
  5. gcc.exe -c aaamain.c -o aaamain.o -I"C:/Dev-Cpp/include" 
  6. In file included from C:/Dev-Cpp/include/stdio.h:26,
  7.                  from aaamain.c:1:
  8. C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h
  9. In file included from C:/Dev-Cpp/include/stdio.h:28,
  10.                  from aaamain.c:1:
  11. C:/Dev-Cpp/include/stdarg.h:6:24: no include path in which to search for stdarg.h
  12. In file included from aaamain.c:1:
  13. C:/Dev-Cpp/include/stdio.h:198: error: syntax error before "size_t"
  14. C:/Dev-Cpp/include/stdio.h:209: error: syntax error before "size_t"
  15. C:/Dev-Cpp/include/stdio.h:210: error: syntax error before "__gnuc_va_list"
  16. C:/Dev-Cpp/include/stdio.h:211: error: syntax error before "__gnuc_va_list"
  17. C:/Dev-Cpp/include/stdio.h:212: error: syntax error before "__gnuc_va_list"
  18. C:/Dev-Cpp/include/stdio.h:213: error: syntax error before "size_t"
  19. C:/Dev-Cpp/include/stdio.h:216: error: syntax error before "size_t"
  20. C:/Dev-Cpp/include/stdio.h:216: warning: conflicting types for built-in function 'snprintf'
  21. C:/Dev-Cpp/include/stdio.h:218: error: syntax error before "size_t"
  22. C:/Dev-Cpp/include/stdio.h: In function `vsnprintf':
  23. C:/Dev-Cpp/include/stdio.h:219: error: `s' undeclared (first use in this function)
  24. C:/Dev-Cpp/include/stdio.h:219: error: (Each undeclared identifier is reported only once
  25. C:/Dev-Cpp/include/stdio.h:219: error: for each function it appears in.)
  26. C:/Dev-Cpp/include/stdio.h:219: error: `n' undeclared (first use in this function)
  27. C:/Dev-Cpp/include/stdio.h:219: error: `format' undeclared (first use in this function)
  28. C:/Dev-Cpp/include/stdio.h:219: error: `arg' undeclared (first use in this function)
  29. C:/Dev-Cpp/include/stdio.h: At top level:
  30. C:/Dev-Cpp/include/stdio.h:220: error: syntax error before "__gnuc_va_list"
  31. C:/Dev-Cpp/include/stdio.h:222: error: syntax error before "__gnuc_va_list"
  32. C:/Dev-Cpp/include/stdio.h:224: error: syntax error before "__gnuc_va_list"
  33. C:/Dev-Cpp/include/stdio.h:297: warning: `__cdecl__' attribute only applies to function types
  34. C:/Dev-Cpp/include/stdio.h:297: error: syntax error before "fread"
  35. C:/Dev-Cpp/include/stdio.h:298: warning: `__cdecl__' attribute only applies to function types
  36. C:/Dev-Cpp/include/stdio.h:298: error: syntax error before "fwrite"
  37. In file included from C:/Dev-Cpp/include/sys/types.h:21,
  38.                  from C:/Dev-Cpp/include/stdio.h:399,
  39.                  from aaamain.c:1:
  40. C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h
  41. In file included from aaamain.c:1:
  42. C:/Dev-Cpp/include/stdio.h:428: error: syntax error before '*' token
  43. C:/Dev-Cpp/include/stdio.h:429: error: syntax error before '*' token
  44. C:/Dev-Cpp/include/stdio.h:430: error: syntax error before '*' token
  45. C:/Dev-Cpp/include/stdio.h:431: error: syntax error before '*' token
  46. C:/Dev-Cpp/include/stdio.h:432: error: syntax error before '*' token
  47. C:/Dev-Cpp/include/stdio.h:433: error: syntax error before '*' token
  48. C:/Dev-Cpp/include/stdio.h:434: error: syntax error before '*' token
  49. C:/Dev-Cpp/include/stdio.h:435: error: syntax error before '*' token
  50. C:/Dev-Cpp/include/stdio.h:436: error: syntax error before '*' token
  51. C:/Dev-Cpp/include/stdio.h:437: error: syntax error before '*' token
  52. C:/Dev-Cpp/include/stdio.h:438: error: syntax error before '*' token
  53. C:/Dev-Cpp/include/stdio.h:439: warning: `__cdecl__' attribute only applies to function types
  54. C:/Dev-Cpp/include/stdio.h:439: error: syntax error before "fgetwc"
  55. C:/Dev-Cpp/include/stdio.h:440: warning: `__cdecl__' attribute only applies to function types
  56. C:/Dev-Cpp/include/stdio.h:440: error: syntax error before "fputwc"
  57. C:/Dev-Cpp/include/stdio.h:441: warning: `__cdecl__' attribute only applies to function types
  58. C:/Dev-Cpp/include/stdio.h:441: error: syntax error before "ungetwc"
  59. C:/Dev-Cpp/include/stdio.h:444: error: syntax error before '*' token
  60. C:/Dev-Cpp/include/stdio.h:444: warning: data definition has no type or storage class
  61. C:/Dev-Cpp/include/stdio.h:445: error: syntax error before '*' token
  62. C:/Dev-Cpp/include/stdio.h:446: warning: `__cdecl__' attribute only applies to function types
  63. C:/Dev-Cpp/include/stdio.h:446: error: syntax error before "getwc"
  64. C:/Dev-Cpp/include/stdio.h:447: warning: `__cdecl__' attribute only applies to function types
  65. C:/Dev-Cpp/include/stdio.h:447: error: syntax error before "getwchar"
  66. C:/Dev-Cpp/include/stdio.h:448: error: syntax error before '*' token
  67. C:/Dev-Cpp/include/stdio.h:448: warning: data definition has no type or storage class
  68. C:/Dev-Cpp/include/stdio.h:449: warning: `__cdecl__' attribute only applies to function types
  69. C:/Dev-Cpp/include/stdio.h:449: error: syntax error before "putwc"
  70. C:/Dev-Cpp/include/stdio.h:450: error: syntax error before '*' token
  71. C:/Dev-Cpp/include/stdio.h:451: warning: `__cdecl__' attribute only applies to function types
  72. C:/Dev-Cpp/include/stdio.h:451: error: syntax error before "putwchar"
  73. C:/Dev-Cpp/include/stdio.h:452: error: syntax error before "wchar_t"
  74. C:/Dev-Cpp/include/stdio.h:453: error: syntax error before '*' token
  75. C:/Dev-Cpp/include/stdio.h:454: error: syntax error before '*' token
  76. C:/Dev-Cpp/include/stdio.h:455: error: syntax error before '*' token
  77. C:/Dev-Cpp/include/stdio.h:456: error: syntax error before '*' token
  78. C:/Dev-Cpp/include/stdio.h:456: error: syntax error before '*' token
  79. C:/Dev-Cpp/include/stdio.h:456: warning: data definition has no type or storage class
  80. C:/Dev-Cpp/include/stdio.h:457: error: syntax error before '*' token
  81. C:/Dev-Cpp/include/stdio.h:457: error: syntax error before '*' token
  82. C:/Dev-Cpp/include/stdio.h:457: warning: data definition has no type or storage class
  83. C:/Dev-Cpp/include/stdio.h:458: error: syntax error before '*' token
  84. C:/Dev-Cpp/include/stdio.h:459: error: syntax error before '*' token
  85. C:/Dev-Cpp/include/stdio.h:460: error: syntax error before '*' token
  86. C:/Dev-Cpp/include/stdio.h:461: error: syntax error before '*' token
  87. C:/Dev-Cpp/include/stdio.h:465: error: syntax error before '*' token
  88. C:/Dev-Cpp/include/stdio.h:467: error: syntax error before '*' token
  89. C:/Dev-Cpp/include/stdio.h: In function `vsnwprintf':
  90. C:/Dev-Cpp/include/stdio.h:468: error: `s' undeclared (first use in this function)
  91. C:/Dev-Cpp/include/stdio.h:468: error: `n' undeclared (first use in this function)
  92. C:/Dev-Cpp/include/stdio.h:468: error: `format' undeclared (first use in this function)
  93. C:/Dev-Cpp/include/stdio.h:468: error: `arg' undeclared (first use in this function)
  94. C:/Dev-Cpp/include/stdio.h: At top level:
  95. C:/Dev-Cpp/include/stdio.h:469: error: syntax error before '*' token
  96. C:/Dev-Cpp/include/stdio.h:471: error: syntax error before '*' token
  97. C:/Dev-Cpp/include/stdio.h:472: error: syntax error before '*' token
  98. C:/Dev-Cpp/include/stdio.h:482: error: syntax error before '*' token
  99. C:/Dev-Cpp/include/stdio.h:489: warning: `__cdecl__' attribute only applies to function types
  100. C:/Dev-Cpp/include/stdio.h:489: error: syntax error before "_fgetwchar"
  101. C:/Dev-Cpp/include/stdio.h:490: warning: `__cdecl__' attribute only applies to function types
  102. C:/Dev-Cpp/include/stdio.h:490: error: syntax error before "_fputwchar"
  103. C:/Dev-Cpp/include/stdio.h:495: warning: `__cdecl__' attribute only applies to function types
  104. C:/Dev-Cpp/include/stdio.h:495: error: syntax error before "fgetwchar"
  105. C:/Dev-Cpp/include/stdio.h:496: warning: `__cdecl__' attribute only applies to function types
  106. C:/Dev-Cpp/include/stdio.h:496: error: syntax error before "fputwchar"
  107. In file included from C:/Dev-Cpp/include/stdlib.h:22,
  108.                  from aaamain.c:2:
  109. C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h
  110. In file included from aaamain.c:2:
  111. C:/Dev-Cpp/include/stdlib.h:80: error: syntax error before '*' token
  112. C:/Dev-Cpp/include/stdlib.h:80: warning: data definition has no type or storage class
  113. C:/Dev-Cpp/include/stdlib.h:151: error: syntax error before '*' token
  114. C:/Dev-Cpp/include/stdlib.h:151: warning: data definition has no type or storage class
  115. C:/Dev-Cpp/include/stdlib.h:263: error: syntax error before '*' token
  116. C:/Dev-Cpp/include/stdlib.h:263: warning: data definition has no type or storage class
  117. C:/Dev-Cpp/include/stdlib.h:308: error: syntax error before '*' token
  118. C:/Dev-Cpp/include/stdlib.h:309: error: syntax error before '*' token
  119. C:/Dev-Cpp/include/stdlib.h:323: error: syntax error before '*' token
  120. C:/Dev-Cpp/include/stdlib.h:325: error: syntax error before '*' token
  121. C:/Dev-Cpp/include/stdlib.h: In function `wcstof':
  122. C:/Dev-Cpp/include/stdlib.h:326: error: `nptr' undeclared (first use in this function)
  123. C:/Dev-Cpp/include/stdlib.h:326: error: `endptr' undeclared (first use in this function)
  124. C:/Dev-Cpp/include/stdlib.h: At top level:
  125. C:/Dev-Cpp/include/stdlib.h:327: error: syntax error before '*' token
  126. C:/Dev-Cpp/include/stdlib.h:330: error: syntax error before '*' token
  127. C:/Dev-Cpp/include/stdlib.h:331: error: syntax error before '*' token
  128. C:/Dev-Cpp/include/stdlib.h:335: warning: `__cdecl__' attribute only applies to function types
  129. C:/Dev-Cpp/include/stdlib.h:335: error: syntax error before "wcstombs"
  130. C:/Dev-Cpp/include/stdlib.h:336: error: syntax error before "wchar_t"
  131. C:/Dev-Cpp/include/stdlib.h:338: error: syntax error before "size_t"
  132. C:/Dev-Cpp/include/stdlib.h:339: warning: `__cdecl__' attribute only applies to function types
  133. C:/Dev-Cpp/include/stdlib.h:339: error: syntax error before "mbstowcs"
  134. C:/Dev-Cpp/include/stdlib.h:340: error: syntax error before '*' token
  135. C:/Dev-Cpp/include/stdlib.h:345: warning: parameter names (without types) in function declaration
  136. C:/Dev-Cpp/include/stdlib.h:346: warning: parameter names (without types) in function declaration
  137. C:/Dev-Cpp/include/stdlib.h:347: error: syntax error before "size_t"
  138. C:/Dev-Cpp/include/stdlib.h:360: error: syntax error before "size_t"
  139. C:/Dev-Cpp/include/stdlib.h:361: error: syntax error before ')' token
  140. C:/Dev-Cpp/include/stdlib.h:362: error: syntax error before "size_t"
  141. C:/Dev-Cpp/include/stdlib.h:363: error: syntax error before ')' token
  142. C:/Dev-Cpp/include/stdlib.h:409: error: syntax error before "size_t"
  143. C:/Dev-Cpp/include/stdlib.h:414: error: syntax error before '*' token
  144. C:/Dev-Cpp/include/stdlib.h:414: error: syntax error before "wchar_t"
  145. C:/Dev-Cpp/include/stdlib.h:414: warning: data definition has no type or storage class
  146. C:/Dev-Cpp/include/stdlib.h:415: error: syntax error before '*' token
  147. C:/Dev-Cpp/include/stdlib.h:415: error: syntax error before "wchar_t"
  148. C:/Dev-Cpp/include/stdlib.h:415: warning: data definition has no type or storage class
  149. C:/Dev-Cpp/include/stdlib.h:416: error: syntax error before '*' token
  150. C:/Dev-Cpp/include/stdlib.h:416: error: syntax error before "wchar_t"
  151. C:/Dev-Cpp/include/stdlib.h:416: warning: data definition has no type or storage class
  152. C:/Dev-Cpp/include/stdlib.h:422: error: syntax error before '*' token
  153. C:/Dev-Cpp/include/stdlib.h:423: error: syntax error before '*' token
  154. C:/Dev-Cpp/include/stdlib.h:423: error: syntax error before "wchar_t"
  155. C:/Dev-Cpp/include/stdlib.h:423: warning: data definition has no type or storage class
  156. C:/Dev-Cpp/include/stdlib.h:424: error: syntax error before '*' token
  157. C:/Dev-Cpp/include/stdlib.h:424: error: syntax error before "wchar_t"
  158. C:/Dev-Cpp/include/stdlib.h:424: warning: data definition has no type or storage class
  159. C:/Dev-Cpp/include/stdlib.h:426: error: syntax error before '*' token
  160. C:/Dev-Cpp/include/stdlib.h:426: error: syntax error before '*' token
  161. C:/Dev-Cpp/include/stdlib.h:426: warning: data definition has no type or storage class
  162. C:/Dev-Cpp/include/stdlib.h:427: error: syntax error before '*' token
  163. C:/Dev-Cpp/include/stdlib.h:428: error: syntax error before '*' token
  164. C:/Dev-Cpp/include/stdlib.h:429: error: syntax error before '*' token
  165. C:/Dev-Cpp/include/stdlib.h:430: error: syntax error before '*' token
  166. C:/Dev-Cpp/include/stdlib.h:431: error: syntax error before '*' token
  167. C:/Dev-Cpp/include/stdlib.h:431: error: syntax error before '*' token
  168. C:/Dev-Cpp/include/stdlib.h:431: warning: data definition has no type or storage class
  169. C:/Dev-Cpp/include/stdlib.h:481: error: syntax error before '*' token
  170. C:/Dev-Cpp/include/stdlib.h:484: error: syntax error before '*' token
  171. C:/Dev-Cpp/include/stdlib.h:484: error: syntax error before "wchar_t"
  172. C:/Dev-Cpp/include/stdlib.h:484: warning: data definition has no type or storage class
  173. C:/Dev-Cpp/include/stdlib.h:485: error: syntax error before '*' token
  174. C:/Dev-Cpp/include/stdlib.h:485: error: syntax error before "wchar_t"
  175. C:/Dev-Cpp/include/stdlib.h:485: warning: data definition has no type or storage class
  176. C:/Dev-Cpp/include/stdlib.h:494: error: syntax error before '*' token
  177. C:/Dev-Cpp/include/stdlib.h: In function `wtoll':
  178. C:/Dev-Cpp/include/stdlib.h:495: error: `_w' undeclared (first use in this function)
  179. C:/Dev-Cpp/include/stdlib.h: At top level:
  180. C:/Dev-Cpp/include/stdlib.h:496: error: syntax error before '*' token
  181. C:/Dev-Cpp/include/stdlib.h:496: error: syntax error before "wchar_t"
  182. C:/Dev-Cpp/include/stdlib.h: In function `lltow':
  183. C:/Dev-Cpp/include/stdlib.h:497: error: `_n' undeclared (first use in this function)
  184. C:/Dev-Cpp/include/stdlib.h:497: error: `_w' undeclared (first use in this function)
  185. C:/Dev-Cpp/include/stdlib.h:497: error: `_i' undeclared (first use in this function)
  186. C:/Dev-Cpp/include/stdlib.h: At top level:
  187. C:/Dev-Cpp/include/stdlib.h:498: error: syntax error before '*' token
  188. C:/Dev-Cpp/include/stdlib.h:498: error: syntax error before "wchar_t"
  189. C:/Dev-Cpp/include/stdlib.h: In function `ulltow':
  190. C:/Dev-Cpp/include/stdlib.h:499: error: `_n' undeclared (first use in this function)
  191. C:/Dev-Cpp/include/stdlib.h:499: error: `_w' undeclared (first use in this function)
  192. C:/Dev-Cpp/include/stdlib.h:499: error: `_i' undeclared (first use in this function)
  193. make.exe: *** [aaamain.o] Error 1
  194. Exécution terminée


 
 
édit: erreur à la c** de ma part, ça fonction bien en fait !!!
merci pour tout tchao!


Message édité par electron-libre le 20-10-2007 à 11:56:35
n°1632781
Florian198​7
Posté le 29-10-2007 à 11:41:51  profilanswer
 

Bonjour,
 
J'ai effectué la manipulation décrite plus haut, mais en voulant compiler un "Hello World !" pour tester, une quantité d'erreurs est survenue.
 
J'ai donc regarder les erreurs. Les premières erreurs venaient du fichier stdio.h. Je l'ai donc ouvert (il existe bien à l'endroit recherché par Code Blocks) et en regardant la première ligne posant problème, je me suis aperçu que le fichier stdio.h appelait une autre biliothèque (<stddef.h> ) qui n'existe pas lui.
 
Je voudrais savoir si quelqu'un peut me dire d'où viens le problème.
 
Merci d'avance

n°1632931
tpierron
Posté le 29-10-2007 à 15:18:00  profilanswer
 

Normallement ces includes sont spécifiques au compilateur, ils sont rangés dans C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include. Si tu n'as pas un répertoire s'y rapprochant, c'est que ton install est FUBAR.

n°1633014
Florian198​7
Posté le 29-10-2007 à 16:07:11  profilanswer
 

J'ai déplacé les fichiers de la bibliothèque :
De : MinGW\lib\gcc\mingw32\3.4.5\include
vers : MingW\include
Il restait une erreur car il ne trouvait pas gcc++ car je ne l'avais pas installé avec MinGW (je code en C). Donc j'ai upgradé MinGW en y ajoutant gcc++ et maintenant je n'ai plus de message d'erreur lors de la compilation.
 
Ce n'est pas pour autant que la compilation se fait correctement puisqu'aucun fichier .exe n'est créé. Y a-t-il une autre manipulation quand le fichier .exe ne se créé pas (J'ai réessayé en supprimant les fichiers .o et .depend qui sont créés lorsque je compile).

n°1635631
magg0t
Posté le 02-11-2007 à 16:52:00  profilanswer
 

Un grand merci à zakinster, a priori ca marche ! j'espère ne pas avoir de mauvaise surprise par la suite
pcq euh je ne sais pas ce que sont les APIS dc j'ai juste fait les déplacement de fichiers...
Merci en tout cas !

n°1638613
rarerealit​ies
Posté le 07-11-2007 à 19:30:43  profilanswer
 

bonjour! j'ai fait l'astuce de zakinster et chez moi j'ai ce message d'erreur
 

Code :
  1. Project   : console
  2. Compiler  : GNU GCC Compiler (called directly)
  3. Directory : D:DocumentsC
  4. --------------------------------------------------------------------------------
  5. Switching to target: default
  6. Compiling: main.c
  7. In file included from main.c:1:
  8. C:/MinGW/include/stdio.h:26:20: stddef.h: No such file or directory
  9. C:/MinGW/include/stdio.h:28:20: stdarg.h: No such file or directory
  10. In file included from main.c:1:
  11. C:/MinGW/include/stdio.h:191: error: syntax error before "size_t"
  12. C:/MinGW/include/stdio.h:202: error: syntax error before "size_t"
  13. C:/MinGW/include/stdio.h:203: error: syntax error before "__gnuc_va_list"
  14. C:/MinGW/include/stdio.h:204: error: syntax error before "__gnuc_va_list"
  15. blablabla plein de lignes
  16. Process terminated with status 1 (0 minutes, 0 seconds)


apparement il ne trouve pas le stdio.h, je débute avec code blocks et je ne sais pas comment le configurer (lui dire ou est mon stdio.h et stdlib.h :p ) un peu d'aide svp :D


Message édité par rarerealities le 07-11-2007 à 19:31:03
n°1638670
stancw
Parle à Monkey ...
Posté le 07-11-2007 à 22:13:46  profilanswer
 

drap ! suis entrain d'installer MinGW ... mais sur XP, j'installerais sous vista ce week-end :D

n°1639026
Vos_01
Posté le 08-11-2007 à 12:52:31  profilanswer
 

J'ai exactement le même problème que Rarerealities, pour ma part. :'(

n°1639243
rarerealit​ies
Posté le 08-11-2007 à 15:23:49  profilanswer
 

sinon apart DevC++ et codeblocks qui ne marchent pas qqn a une autre solution bien? :) (je veux juste faire du C moi xD)

n°1639257
jpcheck
Pioupiou
Posté le 08-11-2007 à 15:34:17  profilanswer
 

hum, turbo C  [:jpcheck]

n°1639472
Vos_01
Posté le 08-11-2007 à 18:15:28  profilanswer
 

Ou Visual C++ (qui ne marche pas non plus sur mon ordi >< )...

n°1639562
moimael
Posté le 08-11-2007 à 21:21:15  profilanswer
 

ba prenez visual c++ express 2008 beta 2, il est assez stable et compile parfaitement.

n°1639611
rarerealit​ies
Posté le 08-11-2007 à 22:08:15  profilanswer
 

je vais le tester merci ;) pour l'instant l'installation est plus longue que celle de vista lui même ... .net v3.5 say la cata :D

n°1639623
rarerealit​ies
Posté le 08-11-2007 à 22:37:55  profilanswer
 

bon c'est fini mais je comprends pas comment faire un projet en C, ya que du C++ :(

n°1640554
Xezbeth
Posté le 09-11-2007 à 22:04:20  profilanswer
 

Le C++ n'est que du C amélioré. Donc tu peux faire du C avec du C++.
Et de toute façon t'es vite limité avec le C (sauf pour une utilisation spécifique peut-être).

 

Chez moi ca ne pmarche pas! Pourtant j'ai bien fait gaffe a prendre la bonne version tout ça!
J'suis un peut vert quand même parce que jme sens pas de passer à Visual C en version d'essai. Je vais ptetre faire une config dédiée.

 

Merci quand même pour votre aide :)

 

EDIT: en fait j'ai des erreurs au niveau des directives de préprocésseurs, il me dit (sur un hello world):
"no include path in wich to search for iostream". Il à pas l'air de les trouver mais je ne sais pas ou ça se trouve.

Message cité 1 fois
Message édité par Xezbeth le 09-11-2007 à 22:09:06
n°1640566
Trap D
Posté le 09-11-2007 à 22:44:59  profilanswer
 

Xezbeth a écrit :

Le C++ n'est que du C amélioré. Donc tu peux faire du C avec du C++.

Il y en a qui se sont retrouvés avec des plumes et du goudron pour moins que ça  :pt1cable:  

n°1640571
rarerealit​ies
Posté le 09-11-2007 à 23:15:13  profilanswer
 

merci pour cette réponse constructive, si je savais faire du C++ je ne demanderai pas comment faire du C... pour l'instant je débute l'apprentissage du C et je cherche juste un logiciel me permetant de faire du C avec Vista...

n°1640595
IrmatDen
Posté le 10-11-2007 à 03:12:12  profilanswer
 

Salut,
 
Je sais pas si ça y est dans VS2008, mais dans le 2005, tu regardes les propriétés de ton projet, section C/C++ > Advanced, et là tu verras (ou pas) une propriété Compile As que tu devrais passer en C.
Par contre en faisant ça, tu oublie tout ce qui est C99, sauf si c'est passé dans la 2008.

n°1640605
rarerealit​ies
Posté le 10-11-2007 à 09:56:29  profilanswer
 

la section C/C++ n'existe pas dans "project>test proprieties" sinon je peux sauvegarder mon fichier en C, je fais mon code, je clique sur la flèche verte et la une fenetre apparait puis disparait et j'ai le message  
The thread 'Win32 Thread' (0x994) has exited with code 0 (0x0).
The program '[3084] test.exe: Native' has exited with code 0 (0x0).
dans la console...
merci pour ton aide IrmatDen :)


Message édité par rarerealities le 10-11-2007 à 09:56:52
n°1640608
Trap D
Posté le 10-11-2007 à 10:06:45  profilanswer
 

IrmatDen >> En Visual 2005, Les .c ne sont pas compilés en C directement ?  
Si c'est le cas, il suffit de créer un projet vide et de rajouter les .c à la main dans "Fichiers sources" / "Ajout d'un élément existant"

n°1640613
rarerealit​ies
Posté le 10-11-2007 à 10:49:06  profilanswer
 

j'ai réussi a faire marcher Devcpp :D  
 

Citation :

mettre les droits contrôle total sur le répertoire Dev-cpp à l'utilisateur courant (ce que j'ai fait) ou exécuter en tant qu'administrateur devcpp (pas essayé) => solution Dolar00 sur gamedev.net
 
- cependant ça ne suffira pas il vous restera le problème suivant :
 
"Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Dev-Cpp\Examples\Hello\Hello.cpp" -o "C:\Dev-Cpp\Examples\Hello\Hello.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
ld: crt2.o: No such file: No such file or directory
 
Execution terminated"
 
Pour règler le problème, il faudra aller dans "outil > options du compilateur", cliquer sur le tab "répertoires" et ajouter : C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2
 
Ensuite, cliquer sur le tab "programmes" et ajouter avant tous les noms de tous les exécutables C:\Dev-Cpp\bin\ (ou CHEMIN_DU_REPERTOIRE_OU_SE_TROUVE_VOTRE_PROG\bin) car visiblement Vista ne veut que des chemins absolu. (Source : http://aresio.blogspot.com/2007/06 [...] -cpp.html)


 
http://www.cppfrance.com/infomsg_D [...] 86253.aspx

n°1640672
IrmatDen
Posté le 10-11-2007 à 14:46:06  profilanswer
 

Trap D a écrit :

IrmatDen >> En Visual 2005, Les .c ne sont pas compilés en C directement ?  
Si c'est le cas, il suffit de créer un projet vide et de rajouter les .c à la main dans "Fichiers sources" / "Ajout d'un élément existant"


Aucune idée, je ne code pas en C; c'est juste que je savais qu'il y avait cette option, donc je tente... okazou c'était ce qu'il cherchait.

n°1640697
Vos_01
Posté le 10-11-2007 à 15:53:27  profilanswer
 

rarerealities a écrit :

j'ai réussi a faire marcher Devcpp :D


 
Pareil, avec la même méthode. ;)  
M'enfin à terme, j'espère quand même passer à C::B, parce que Dev n'est plus mis à jour depuis longtemps... Si quelqu'un a un tip pour faire tourner C::B sous Vista, ça m'aiderait bien. :s

n°1640720
rarerealit​ies
Posté le 10-11-2007 à 18:00:02  profilanswer
 

en tout cas ça fait bien plaisir, un petit moment que j'essayais :p

n°1640727
Xezbeth
Posté le 10-11-2007 à 18:38:27  profilanswer
 

Ouais moi aussi ça marche chez moi! Merci beaucoup beaucoup! :)
Par contre code::Blocks toujours pas, rien a faire...

n°1640729
Vos_01
Posté le 10-11-2007 à 19:03:39  profilanswer
 

C'est d'autant plus chiant que les MAJ de Code::Blocks sont bien plus récentes... :/

n°1640741
rarerealit​ies
Posté le 10-11-2007 à 19:40:54  profilanswer
 

bin essayez de changer les chemins d'accès au compilateur en mettant les chemins complets si c'est le même problème que Dev :)

n°1640882
Vos_01
Posté le 11-11-2007 à 12:24:54  profilanswer
 

Ben... Et toi, t'essayais pas de faire marcher Code::Blocks ? :lol:  
En même temps, je pense que ça se saurait si c'était la même solution pour les deux... :s

mood
Publicité
Posté le   profilanswer
 

 Page :   1  2
Page Précédente

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

  Code Blocks & Vista...

 

Sujets relatifs
code html image nouvelle fenetre...AS 3 - code
Assembleur 16/32 bits (compilateur pour vista)code pour streaming multiple
Résultat code PHP dans une variable --> include ?le bde avec vista ... quoi d'autre utiliser ?
[PHP] problème code...[RESOLU]comment calculer la distance entre 2 villes (code postaux?) ??
Code php pour la deconnexionDirectShow sous Vista ?
Plus de sujets relatifs à : Code Blocks & Vista...


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