Problem mit DevC++ unter Vista



  • Hi,

    wie oben schon steht hab ich ein Problem. Wenn ich F9 drücke kommt diese Ausgabe:

    Compiler: Default compiler
    Führt  gcc.exe... aus
    gcc.exe "C:\Users\r00t\Desktop\Unbenannt1.c" -o "C:\Users\r00t\Desktop\Unbenannt1.exe"    -I"C:\Dev-Cpp\include"   -L"C:\Dev-Cpp\lib" 
    In file included from C:/Dev-Cpp/include/stdio.h:26,
                     from C:\Users\r00t\Desktop\Unbenannt1.c:1:
    C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h
    In file included from C:/Dev-Cpp/include/stdio.h:28,
                     from C:\Users\r00t\Desktop\Unbenannt1.c:1:
    C:/Dev-Cpp/include/stdarg.h:6:24: no include path in which to search for stdarg.h
    In file included from C:\Users\r00t\Desktop\Unbenannt1.c:1:
    C:/Dev-Cpp/include/stdio.h:198: error: syntax error before "size_t"
    
    C:/Dev-Cpp/include/stdio.h:209: error: syntax error before "size_t"
    C:/Dev-Cpp/include/stdio.h:210: error: syntax error before "__gnuc_va_list"
    C:/Dev-Cpp/include/stdio.h:211: error: syntax error before "__gnuc_va_list"
    C:/Dev-Cpp/include/stdio.h:212: error: syntax error before "__gnuc_va_list"
    C:/Dev-Cpp/include/stdio.h:213: error: syntax error before "size_t"
    C:/Dev-Cpp/include/stdio.h:216: error: syntax error before "size_t"
    C:/Dev-Cpp/include/stdio.h:216: warning: conflicting types for built-in function 'snprintf'
    C:/Dev-Cpp/include/stdio.h:218: error: syntax error before "size_t"
    C:/Dev-Cpp/include/stdio.h: In function `vsnprintf':
    C:/Dev-Cpp/include/stdio.h:219: error: `s' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdio.h:219: error: (Each undeclared identifier is reported only once
    C:/Dev-Cpp/include/stdio.h:219: error: for each function it appears in.)
    C:/Dev-Cpp/include/stdio.h:219: error: `n' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdio.h:219: error: `format' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdio.h:219: error: `arg' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdio.h: At top level:
    C:/Dev-Cpp/include/stdio.h:220: error: syntax error before "__gnuc_va_list"
    C:/Dev-Cpp/include/stdio.h:222: error: syntax error before "__gnuc_va_list"
    C:/Dev-Cpp/include/stdio.h:224: error: syntax error before "__gnuc_va_list"
    C:/Dev-Cpp/include/stdio.h:297: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdio.h:297: error: syntax error before "fread"
    C:/Dev-Cpp/include/stdio.h:298: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdio.h:298: error: syntax error before "fwrite"
    In file included from C:/Dev-Cpp/include/sys/types.h:21,
                     from C:/Dev-Cpp/include/stdio.h:399,
                     from C:\Users\r00t\Desktop\Unbenannt1.c:1:
    
    C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h
    In file included from C:\Users\r00t\Desktop\Unbenannt1.c:1:
    
    C:/Dev-Cpp/include/stdio.h:428: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:429: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:430: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:431: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:432: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:433: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:434: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:435: error: syntax error before '*' token
    
    C:/Dev-Cpp/include/stdio.h:436: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:437: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:438: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:439: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdio.h:439: error: syntax error before "fgetwc"
    C:/Dev-Cpp/include/stdio.h:440: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdio.h:440: error: syntax error before "fputwc"
    C:/Dev-Cpp/include/stdio.h:441: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdio.h:441: error: syntax error before "ungetwc"
    C:/Dev-Cpp/include/stdio.h:444: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:444: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdio.h:445: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:446: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdio.h:446: error: syntax error before "getwc"
    C:/Dev-Cpp/include/stdio.h:447: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdio.h:447: error: syntax error before "getwchar"
    C:/Dev-Cpp/include/stdio.h:448: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:448: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdio.h:449: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdio.h:449: error: syntax error before "putwc"
    C:/Dev-Cpp/include/stdio.h:450: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:451: warning: `__cdecl__' attribute only applies to function types
    
    C:/Dev-Cpp/include/stdio.h:451: error: syntax error before "putwchar"
    C:/Dev-Cpp/include/stdio.h:452: error: syntax error before "wchar_t"
    C:/Dev-Cpp/include/stdio.h:453: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:454: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:455: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:456: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:456: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:456: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdio.h:457: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:457: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:457: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdio.h:458: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:459: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:460: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:461: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:465: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:467: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h: In function `vsnwprintf':
    
    C:/Dev-Cpp/include/stdio.h:468: error: `s' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdio.h:468: error: `n' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdio.h:468: error: `format' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdio.h:468: error: `arg' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdio.h: At top level:
    C:/Dev-Cpp/include/stdio.h:469: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:471: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:472: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:482: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdio.h:489: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdio.h:489: error: syntax error before "_fgetwchar"
    C:/Dev-Cpp/include/stdio.h:490: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdio.h:490: error: syntax error before "_fputwchar"
    C:/Dev-Cpp/include/stdio.h:495: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdio.h:495: error: syntax error before "fgetwchar"
    C:/Dev-Cpp/include/stdio.h:496: warning: `__cdecl__' attribute only applies to function types
    
    C:/Dev-Cpp/include/stdio.h:496: error: syntax error before "fputwchar"
    
    Ausführung beendet
    

    kann mir bitte jemand helfen das zum laufen zu bekommen?



  • Warum gibst du dich mit einem Compiler ab, der schon seit mehr als 2 Jahren als tot gillt? Hol dir Express!



  • was haben die fehler mit vista zu tun? du kompilierst scheinbar einen vc++ code mit dem devcpp compiler (mingw glaub ich).



  • Das Problem ist hier ziemlich eindeutig, dass die builtin Verzeichnisse der alten MinGWs, wie er bei DevC++ enthalten ist, unter Vista nicht mehr funktionieren.

    MinGW bietet mittlerweile unter MinGW.org sowohl die «stabile» 3er als auch die TechPreview 4er mit einem Vista Fix an.

    C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h



  • Ok sry das ich so blöd frage, aber was genau muss ich jetzt machen?

    Ich will aber devc++ verwenden, da wir dies ach in der Berufschule nutzen...



  • also ich hab die aktuellste version von wxdevcpp und das läuft bei mir unter vista einwandfrei. hast du die aktuellste version von devcpp?



  • Machine schrieb:

    also ich hab die aktuellste version von wxdevcpp und das läuft bei mir unter vista einwandfrei. hast du die aktuellste version von devcpp?

    Die letzte Version von DevC++ ist von irgendwann 2005, die letzte Version von wxDevCpp ist von mitte 2007.

    2005 war Vista noch kein Thema, 2007 schon - gut möglich dass wxDevCpp da schoon einen Fix hat

    EDIT://
    MinGW aktulisierst du, in dem du die neue Version dorthin entpackst, wo die alte lag. Das ist bei dir wohl C:\Devcpp wenn ich das richtig gesehen habe 😉



  • Hm ok,

    kann ich mit wxdevcpp auch Ansi C coden? was ist der Unterschied zur normalen Version?



  • der unterschied ist afaik eigentlich nur, dass das fenster-framework wxwidgets dabei ist... du kannst damit auch alles coden, was du mit devcpp coden kannst.



  • ich habe jetzt wxdevcpp installiert und wenn ich F9 drücke kommt bei kompillieren "done" unds dann ne Meldung "Quelldatei ist nicht kompiliert", das gleiche kommte wenn ich nur kompiliere und dann ausführe

    an was liegt das???

    Kann mir jemand den Link zu ner exe sagen wo ich ein devcpp bekommen kann das auch unter vista funktioniert?



  • so jetz hab ich es soweit das nur noch diese Ausgabe kommt

    1:19 C:\Users\r00t\Desktop\main.c no include path in which to search for stdio.h

    wie kann ich das jetz zum laufen bekommen?



  • Sagte ich doch bereits.

    Die neuen MinGW Archive von http://www.mingw.org/ herunterladen und über die alten Versionen extrahieren.



  • ja welche Version brauch ich den da?

    kann ich nicht einfach einen Ort angegben wo devc++ nach den headerdateien sucht?



  • Ja kannst du.

    Dann musst du danach aber warscheinlich auch noch die library-Verzeichnisse anpassen, in etwa so:

    http://wiki.codeblocks.org/index.php?title=Installing_MinGW_with_Vista


Anmelden zum Antworten