Anmäl dig till Roborock Challenge!
Permalänk
Medlem

C IDE/kompilator till Vista.

Halloj har prövat både DevC++ och Eclipse men ingen av dem fungerar i Vista.

I DevC++ går kompileringen igenom, men när jag trycker Run så säger den Source file not compiled och i compile log står det

Compiler: Default compiler Executing gcc.exe... gcc.exe "C:\Users\Phalle\hello.c" -o "C:\Users\Phalle\hello.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" gcc.exe: installation problem, cannot exec `cc1': No such file or directory Execution terminated Compilation successful

cc1.exe ligger i C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2, har prövat att flytta den till C:\Dev-Cpp\bin (googlade nån sa att man kunde testa det) men det hjälpte inte. Då får jag istället:

Compiler: Default compiler Executing gcc.exe... gcc.exe "C:\Users\Phalle\hello.c" -o "C:\Users\Phalle\hello.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\Phalle\hello.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\Phalle\hello.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\Phalle\hello.c:1: C:/Dev-Cpp/include/stdio.h:198: error: syntax error before "size_t" . . . *massa rader fel* . . 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" Execution terminated

Men stddef.h och stdarg.h ligger i C:\Dev-Cpp\include som de ska göra.

Kör Dev-C++ 4.9.9.2 med Mingw/GCC 3.4.2.

Vet ni något annat program jag kan använda för C eller hur man fixar DevC++?

Permalänk

Visual C++ Express kanske?

Permalänk
Medlem

Jo får väl köra på det fast jag inte gillar den.

Permalänk
Medlem

Visual Studio 2008 beta
Ej testat själv för jag gillar inte betaversioner av program som klagar på att jag gör fel.

Visa signatur

E6300 | Thermalright Ultra-120 eXtreme + Noctua 120mm 1200rpm | Gigabyte GA-965P-DS3 | 3GB Corsair XMS2-6400 CL5

Permalänk
Medlem

Du kör programmen som administratör va? Typ högerklicka kör som administratör. Har haft lite skumma fel med VS 2005 i vista men det brukar rulla på när man kör som admin.

Visa signatur
Permalänk
Medlem

Jopp. kör som admin.

Permalänk
Medlem

Fixa korrekta paths så funkar det