this is my code which is named samp2.c:
#include <stdio.h>
int main()
{
printf("Hello\n");
system("PAUSE");
return 0;
}
I am having problems with compiling my code. After clicking on compile and then clicking run and get the following messege "Source file not compiled." The compiler log tab shows the following:
Compiler: Default compiler
Executing gcc.exe...
gcc.exe "C:\samp2.c" -o "C:\samp2.exe" -ansi -traditional-cpp -w -fno-access-control -fdollar-in-identifiers -fsave-memoized -fexceptions -fverbose-asm -O3 -pg -lobjc -g3 -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -L"C:\GccAshWare\gcc-m68k-ashware\lib"
C:\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\tradcpp0.exe: invalid option `-std=c89'
Execution terminated
The compiler tab shows the following:
Line: \Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\tradcpp0.exe
File: C:\C
Message: invalid option `-std=c89'
when i click on this messege I get the following:
"This is a linker error! It's a generic problem in your source files.
Can anyone help fix this problem. thanks
|