MinGW und DevC++ unter Vista: Geht nicht?!



  • Ja und wiso konnte ich es dann schon einmal *so* ändern? ICh will PATH wieder ändern, und das geht so:

    Rechtsklick auf Computer -> Eigenschaften (alternativ: Win+Pause)

    dann links auf "erweiterte Systemeinstellungen", UAC bestätigen (jetzt bist du als Admin drin) und dann unten auf "Umgebungsvariablen" klicken

    Also gut. Achja, geht 😉 Dankeschön 😉

    Aber trotzdem: Wiso ging es uber "mein weg" den trotzdem ein mal?



  • Jetzt will ich MinGWStudio unter Vista zu laufen bringen:

    Diesen Fehler gibts ja immer:

    gcc.exe: installation problem, cannot exec `cc1': No such file or directory
    

    Ich habe die Systemvariable "PATH" auf diesen Wert gesetzt, damit es cc1 findet:

    C:\MinGWStudio\MinGW\lib\gcc-lib\mingw32\3.3.1\cc1
    

    Geholfen hat's nix 😞 , der Fehler ist immernoch da 😕 😕

    Edit: Ich habe hinter cc1 noch ".exe" gehängt: Das bringt auch nichts 😞

    Edit2: Ich versuche das ganze jetzt mal mit DevC++ und dieser Anleitung hier: http://www.et-forum.org/index.php?showtopic=1713#

    Edit3: Und auch DevC++ will nicht: Systemvariable PATH geändert auf C:\Dev-cpp\libexec\gcc\mingw32\3.4.2 nach dieser einen Anleitung und wieder den cc1 fehler

    *HILFE*

    Jetzt wirds ganz heiß. Ich habe es einfach mal so gelassen, nur DevC++ wieder geöffnet und Compiled:

    Compiler: Default compiler
    Building Makefile: "C:\Dev-Cpp\Makefile.win"
    Executing  make...
    make.exe -f "C:\Dev-Cpp\Makefile.win" all
    gcc.exe -c main.c -o main.o -I"C:/Dev-Cpp/include"   
    
    In file included from C:/Dev-Cpp/include/stdio.h:26,
                     from main.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 main.c:1:
    C:/Dev-Cpp/include/stdarg.h:6:24: no include path in which to search for stdarg.h
    In file included from main.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 main.c:1:
    C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h
    In file included from main.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"
    In file included from C:/Dev-Cpp/include/stdlib.h:22,
                     from main.c:2:
    C:/Dev-Cpp/include/stddef.h:6:24: no include path in which to search for stddef.h
    In file included from main.c:2:
    C:/Dev-Cpp/include/stdlib.h:80: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:80: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdlib.h:151: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:151: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdlib.h:263: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:263: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdlib.h:308: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:309: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:323: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:325: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h: In function `wcstof':
    C:/Dev-Cpp/include/stdlib.h:326: error: `nptr' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdlib.h:326: error: `endptr' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdlib.h: At top level:
    C:/Dev-Cpp/include/stdlib.h:327: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:330: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:331: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:335: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdlib.h:335: error: syntax error before "wcstombs"
    C:/Dev-Cpp/include/stdlib.h:336: error: syntax error before "wchar_t"
    C:/Dev-Cpp/include/stdlib.h:338: error: syntax error before "size_t"
    C:/Dev-Cpp/include/stdlib.h:339: warning: `__cdecl__' attribute only applies to function types
    C:/Dev-Cpp/include/stdlib.h:339: error: syntax error before "mbstowcs"
    C:/Dev-Cpp/include/stdlib.h:340: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:345: warning: parameter names (without types) in function declaration
    C:/Dev-Cpp/include/stdlib.h:346: warning: parameter names (without types) in function declaration
    C:/Dev-Cpp/include/stdlib.h:347: error: syntax error before "size_t"
    C:/Dev-Cpp/include/stdlib.h:360: error: syntax error before "size_t"
    C:/Dev-Cpp/include/stdlib.h:361: error: syntax error before ')' token
    C:/Dev-Cpp/include/stdlib.h:362: error: syntax error before "size_t"
    C:/Dev-Cpp/include/stdlib.h:363: error: syntax error before ')' token
    C:/Dev-Cpp/include/stdlib.h:409: error: syntax error before "size_t"
    C:/Dev-Cpp/include/stdlib.h:414: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:414: error: syntax error before "wchar_t"
    C:/Dev-Cpp/include/stdlib.h:414: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdlib.h:415: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:415: error: syntax error before "wchar_t"
    C:/Dev-Cpp/include/stdlib.h:415: warning: data definition has no type or storage class
    
    C:/Dev-Cpp/include/stdlib.h:416: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:416: error: syntax error before "wchar_t"
    C:/Dev-Cpp/include/stdlib.h:416: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdlib.h:422: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:423: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:423: error: syntax error before "wchar_t"
    C:/Dev-Cpp/include/stdlib.h:423: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdlib.h:424: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:424: error: syntax error before "wchar_t"
    C:/Dev-Cpp/include/stdlib.h:424: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdlib.h:426: error: syntax error before '*' token
    
    C:/Dev-Cpp/include/stdlib.h:426: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:426: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdlib.h:427: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:428: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:429: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:430: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:431: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:431: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:431: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdlib.h:481: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:484: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:484: error: syntax error before "wchar_t"
    C:/Dev-Cpp/include/stdlib.h:484: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdlib.h:485: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:485: error: syntax error before "wchar_t"
    C:/Dev-Cpp/include/stdlib.h:485: warning: data definition has no type or storage class
    C:/Dev-Cpp/include/stdlib.h:494: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h: In function `wtoll':
    C:/Dev-Cpp/include/stdlib.h:495: error: `_w' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdlib.h: At top level:
    
    C:/Dev-Cpp/include/stdlib.h:496: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:496: error: syntax error before "wchar_t"
    C:/Dev-Cpp/include/stdlib.h: In function `lltow':
    C:/Dev-Cpp/include/stdlib.h:497: error: `_n' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdlib.h:497: error: `_w' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdlib.h:497: error: `_i' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdlib.h: At top level:
    C:/Dev-Cpp/include/stdlib.h:498: error: syntax error before '*' token
    C:/Dev-Cpp/include/stdlib.h:498: error: syntax error before "wchar_t"
    C:/Dev-Cpp/include/stdlib.h: In function `ulltow':
    C:/Dev-Cpp/include/stdlib.h:499: error: `_n' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdlib.h:499: error: `_w' undeclared (first use in this function)
    C:/Dev-Cpp/include/stdlib.h:499: error: `_i' undeclared (first use in this function)
    
    make.exe: *** [main.o] Error 1
    
    Execution terminated
    

    Jetz bin ich ganz ratlos. Systemvariable habe ich gelassen...



  • Sieht aus wie ein Problem mit den includes.



  • Und was kann ich dagegen machen?

    P.S. Was steht eigendlich Standardmäßig in der Sys.variabl "Path" bzw. "PATH"?



  • Benutzervariable:
    MINGW = c:\programme\mingw\bin
    PATH= .;%MINGW%; // und tausend andere Compiler dazu

    Systemvariable:
    Path = %SystemRoot%;%SystemRoot%\system32;%SystemRoot%\System32\Wbem;

    So ist das bei mir 😉



  • Zeus schrieb:

    Benutzervariable:
    MINGW = c:\programme\mingw\bin
    Path = .;%MINGW%; // und tausend andere Compiler dazu

    Systemvariable:
    Path = %SystemRoot%;%SystemRoot%\system32;%SystemRoot%\System32\Wbem;

    So ist das bei mir 😉

    Und damit gehts? MinGW(Studio?) oder DevC++?



  • Vergiss %path% wieder. Die Binaries findet er eh.

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

    Du hast da scheinbar Chaos mit den include-paths, die sind aber bei mingw (glaub' ich) nicht via Env-Variable steuerbar (aber nachlesen könnte mich widerlegen).
    Die kann man dem GCC aber jedenfalls via Argument mitgeben; du wirst verzeihen, daß ich die nicht auswendig weiß. Ein gcc --help wird dir das sicher verraten.
    Bring's einmal durch händischen Aufruf des gcc zum Durchcompilen, danach werden wir weiter sehen.



  • Du hast ein Problem mit dem Compilersettings für dein Projekt.

    Welche Verzeichnis sind den eingetragen?

    btw Mingw läuft bei mir für Netbeans(msys nötig) und Eclipse/CDT



  • OK, halt!

    Das cc1-Problem ist unter MinGWStudio weg, durch diese Sysvariable: C:\Dev-cpp\libexec\gcc\mingw32\3.4.2

    Unter DevC++ ist eben dieses Chaos, aber DevC++ habe ich eh deinstalliert! MinGW-Zeugs habe ich aber nicht gelöscht (von Dev-C++).

    Jetzt kommt ein as-Problem. Bei mir liegt as dann im C:\MinGWStudio\MinGW\mingw32\bin Verzeichnis. Wenn ich das in PATH angebe, durch ";" getrennt, müsste doch auch das weg sein, oder??

    Edit: OK, gemacht. Jetzt unter MinGWStudio compiled:

    0 Errors 0 Warnings, Perfekt!!

    Edit2: Damit das ganze etwas ordentlicher ist habe ich cc1 in C:\MinGWStudio\MinGW\mingw32\bin reinkopiert und bei den Systemvariablen das DevCpp-Verzeichnis rausgelöscht, damit ich auch das DevC++Verzeichnis löschen kann, MinGW(Studio) reicht mir! Und es geht jetzt ja 😉



  • Hallo,

    Wenn ich irgendein C-Projekt öffne (MinGWStudio) und es dann "zum ersten mal kopile", dann kommen Warnings:

    --------------------Configuration: Zaehler - Debug--------------------
    Compiling source file(s)...
    ZaehlerC.c
    <command line>:2:1: warning: "__GNUC_MINOR__" redefined
    <built-in>:3:1: warning: this is the location of the previous definition
    <command line>:3:1: warning: "__GNUC_PATCHLEVEL__" redefined
    <built-in>:4:1: warning: this is the location of the previous definition
    ZaehlerC.c:79:2: warning: no newline at end of file
    Linking...
    
    Zaehler.exe - 0 error(s), 5 warning(s)
    

    Wenn ich dann ein zweites mal kompile: 0Errors und 0Warnings.

    Und es geht.

    Aber ich würde diese Errors gern wegbekommen, wie?
    Was stimmt da nicht?



  • Ich habe es gelöst, mit den Warnungen!!


Anmelden zum Antworten