Here is my code...
int main() { printf ("Hello World!\n"); system("pause"); return 0; }
This is what the log says...
Compiler: Default compiler Executing gcc.exe... gcc.exe "C:\Documents and Settings\Diamond Sarah\My Documents\C programs\Hello World.c" -o "C:\Documents and Settings\Diamond Sarah\My Documents\C programs\Hello World.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" /mingw/lib/crt2.o(.text+0x167):crt1.c: undefined reference to `__cpu_features_init' collect2: ld returned 1 exit status
Execution terminated
Any idea what I need to do here? Thanks for the help!
This forum does have a search capability - if you search on that error message, you will find some good clues.
Also, please note, spaces in the path are a really bad idea. You not only have them in your path, you have them in your program name. Don't do that.
Wayne
OK, I figured it out. I had another compiler installed that I forgot about and they were conflicting. Also, thanks for the tip Wayne.
Good job.
Out of curiosity, which compiler was it? The GCC from Cygwin?
yes it was actually.
Log in to post a comment.
Here is my code...
include<stdio.h>
int main()
{
printf ("Hello World!\n");
system("pause");
return 0;
}
This is what the log says...
Compiler: Default compiler
Executing gcc.exe...
gcc.exe "C:\Documents and Settings\Diamond Sarah\My Documents\C programs\Hello World.c" -o "C:\Documents and Settings\Diamond Sarah\My Documents\C programs\Hello World.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
/mingw/lib/crt2.o(.text+0x167):crt1.c: undefined reference to `__cpu_features_init'
collect2: ld returned 1 exit status
Execution terminated
Any idea what I need to do here? Thanks for the help!
This forum does have a search capability - if you search on that error message, you
will find some good clues.
Also, please note, spaces in the path are a really bad idea. You not only have them
in your path, you have them in your program name. Don't do that.
Wayne
OK, I figured it out. I had another compiler installed that I forgot about and they were conflicting. Also, thanks for the tip Wayne.
Good job.
Out of curiosity, which compiler was it? The GCC from Cygwin?
Wayne
yes it was actually.