Partage
  • Partager sur Facebook
  • Partager sur Twitter

Compilation sous vista

Ca marche pas

    26 juin 2007 à 17:37:37

    Bonjour à tous et à chacun :)

    J'ai windows vista depuis une semaine et j'ai essayer de compiler sous code block le bon vieux "Hello world". J'ai bien entendu auparavant suivis à la lettre les instructions qui se trouve la et j'ai 50 0000 message d'erreurs qui s'affiche :

    :: === Test, Debug ===
    C:\MinGW\include\stdio.h:26: stddef.h: No such file or directory
    C:\MinGW\include\stdio.h:28: stdarg.h: No such file or directory
    C:\MinGW\include\stdio.h:191: error: syntax error before "size_t"
    C:\MinGW\include\stdio.h:202: error: syntax error before "size_t"
    C:\MinGW\include\stdio.h:203: error: syntax error before "__gnuc_va_list"
    C:\MinGW\include\stdio.h:204: error: syntax error before "__gnuc_va_list"
    C:\MinGW\include\stdio.h:205: error: syntax error before "__gnuc_va_list"
    C:\MinGW\include\stdio.h:206: error: syntax error before "size_t"
    C:\MinGW\include\stdio.h:209: error: syntax error before "size_t"
    C:\MinGW\include\stdio.h:209: warning: conflicting types for built-in function 'snprintf'
    C:\MinGW\include\stdio.h:211: error: syntax error before "size_t"
    C:\MinGW\include\stdio.h:: In function `vsnprintf':
    C:\MinGW\include\stdio.h:212: error: `s' undeclared (first use in this function)
    C:\MinGW\include\stdio.h:212: error: (Each undeclared identifier is reported only once
    C:\MinGW\include\stdio.h:212: error: for each function it appears in.)
    C:\MinGW\include\stdio.h:212: error: `n' undeclared (first use in this function)
    C:\MinGW\include\stdio.h:212: error: `format' undeclared (first use in this function)
    C:\MinGW\include\stdio.h:212: error: `arg' undeclared (first use in this function)
    C:\MinGW\include\stdio.h:213: error: syntax error before "__gnuc_va_list"
    C:\MinGW\include\stdio.h:215: error: syntax error before "__gnuc_va_list"
    C:\MinGW\include\stdio.h:217: error: syntax error before "__gnuc_va_list"
    C:\MinGW\include\stdio.h:290: warning: type defaults to `int' in declaration of `size_t'
    C:\MinGW\include\stdio.h:290: warning: `__cdecl__' attribute only applies to function types
    C:\MinGW\include\stdio.h:290: error: syntax error before "fread"
    C:\MinGW\include\stdio.h:291: warning: type defaults to `int' in declaration of `size_t'
    C:\MinGW\include\stdio.h:291: warning: `__cdecl__' attribute only applies to function types
    C:\MinGW\include\stdio.h:291: error: syntax error before "fwrite"
    C:\MinGW\include\stdio.h:436: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:436: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:437: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:437: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:438: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:439: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:440: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:440: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:441: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:441: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:442: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:443: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:444: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:444: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:445: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:445: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:446: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:446: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:447: warning: type defaults to `int' in declaration of `wint_t'
    C:\MinGW\include\stdio.h:447: warning: `__cdecl__' attribute only applies to function types
    C:\MinGW\include\stdio.h:447: error: syntax error before "fgetwc"
    C:\MinGW\include\stdio.h:448: warning: type defaults to `int' in declaration of `wint_t'
    C:\MinGW\include\stdio.h:448: warning: `__cdecl__' attribute only applies to function types
    C:\MinGW\include\stdio.h:448: error: syntax error before "fputwc"
    C:\MinGW\include\stdio.h:449: warning: type defaults to `int' in declaration of `wint_t'
    C:\MinGW\include\stdio.h:449: warning: `__cdecl__' attribute only applies to function types
    C:\MinGW\include\stdio.h:449: error: syntax error before "ungetwc"
    C:\MinGW\include\stdio.h:452: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:452: warning: type defaults to `int' in declaration of `fgetws'
    C:\MinGW\include\stdio.h:452: warning: data definition has no type or storage class
    C:\MinGW\include\stdio.h:453: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:453: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:454: warning: type defaults to `int' in declaration of `wint_t'
    C:\MinGW\include\stdio.h:454: warning: `__cdecl__' attribute only applies to function types
    C:\MinGW\include\stdio.h:454: error: syntax error before "getwc"
    C:\MinGW\include\stdio.h:455: warning: type defaults to `int' in declaration of `wint_t'
    C:\MinGW\include\stdio.h:455: warning: `__cdecl__' attribute only applies to function types
    C:\MinGW\include\stdio.h:455: error: syntax error before "getwchar"
    C:\MinGW\include\stdio.h:456: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:456: warning: type defaults to `int' in declaration of `_getws'
    C:\MinGW\include\stdio.h:456: warning: data definition has no type or storage class
    C:\MinGW\include\stdio.h:457: warning: type defaults to `int' in declaration of `wint_t'
    C:\MinGW\include\stdio.h:457: warning: `__cdecl__' attribute only applies to function types
    C:\MinGW\include\stdio.h:457: error: syntax error before "putwc"
    C:\MinGW\include\stdio.h:458: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:458: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:459: warning: type defaults to `int' in declaration of `wint_t'
    C:\MinGW\include\stdio.h:459: warning: `__cdecl__' attribute only applies to function types
    C:\MinGW\include\stdio.h:459: error: syntax error before "putwchar"
    C:\MinGW\include\stdio.h:460: error: syntax error before "wchar_t"
    C:\MinGW\include\stdio.h:461: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:461: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:462: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:462: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:463: warning: type defaults to `int' in declaration of `wchar_t'
    C:\MinGW\include\stdio.h:463: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:464: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:464: error: syntax error before '*' token
    C:\MinGW\include\stdio.h:464: warning: type defaults to `int' in declaration of `_wtmpnam'
    C:\MinGW\include\stdio.h:464: warning: data definition has no type or storage class
    C:\MinGW\include\stdio.h:465: error: syntax error before '*' token
    :: More errors follow but not being shown.
    :: Edit the max errors limit in compiler options...
    :: === Build finished: 50 errors, 37 warnings ===


    Que faire ?
    J'ai également mis visual C++ sur mon pc, mais je n'aime pas et la non plus ca ne compile pas. Merci de m'aider.
    • Partager sur Facebook
    • Partager sur Twitter
      26 juin 2007 à 17:44:56

      est ce que tu est sur que code::blocks fonctionne sous windows vista.
      • Partager sur Facebook
      • Partager sur Twitter
        26 juin 2007 à 17:48:55

        A la base non, et c'est pour ca qu'il faut faire une petite magouille (que j'ai fait) pour que le compilateur fonctionne. Maintenant, code block compile, mais il met cette erreurs.
        • Partager sur Facebook
        • Partager sur Twitter
          26 juin 2007 à 18:12:06

          Quelle "magouille"? :o

          On ne "magouille" pas quand on ne sait pas exactement ce qu'on fait :o
          • Partager sur Facebook
          • Partager sur Twitter
            26 juin 2007 à 18:48:20

            La magouille que on trouve la ! http://www.siteduzero.com/forum-83-125906-1323824.html#r1323824 c'est a dire déplacer des éxécutable, ainsi que d'utiliser mingw comme compilateur.
            • Partager sur Facebook
            • Partager sur Twitter
              27 juin 2007 à 5:07:17

              Alors ,moi voilà ,j'ai le même soucis ,mais j'ai pas autant de msg d'erreur ,il me dit juste (mon IDE) "cc1" not found ,dans la fenêtre de rapport ...Il faut dire que j'ai pas fait la fameuse magouille ,mais si je dois la faire ,est ce que t'as pu resoudre le pb avec les messages d'erreurs stp ? Merci ;)
              • Partager sur Facebook
              • Partager sur Twitter
                27 juin 2007 à 10:40:34

                Alors oui il faut que tu fasse la magouille. Ensuite apparement, c'est un problème spécifique à mon pc. Apparement, c'est mon stdio qui foire. Je vais essayer de le changer d'utiliser celui de mon ancien pc. Si ca se trouve c'est le stdio livré avc mingw 32 qui foire. Après tout ca teste !
                • Partager sur Facebook
                • Partager sur Twitter

                Compilation sous vista

                × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
                × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
                • Editeur
                • Markdown