i'm using Dev c++ 4.9.9.2
trying to do the basic hello world in c
here is the code i wrote in dev c++
main()
{
printf("helloworld\n");
getchar();
}
i mad a project and then i the source file ? i seve the source file as hello world.c
and the project as hello
what am i doing wrong
it say's i have 2 errors in the compile log
[Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status
C:\Dev-Cpp\Makefile.win [Build Error] ["hello] Error 1
why am i using the getchar();
well i just following the tutorial
it dosnt work ether way with or with out getchar();
i'm not sure witch one is the one to look at ?
this is from the compiler ?
[Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status
C:\Dev-Cpp\Makefile.win [Build Error] ["hello] Error 1
this is from compiler log
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
gcc.exe -c "hell world.c" -o "hell world.o" -I"C:/Dev-Cpp/include"
gcc.exe "hell world.o" -o "hello .exe" -L"C:/Dev-Cpp/lib"
/mingw/lib/crt2.o(.text+0x37):crt1.c: undefined reference to `__cpu_features_init'
collect2: ld returned 1 exit status
make.exe: *** ["hello] Error 1
Execution terminated
This post has been edited by combox27: 01 February 2009 - 11:11 AM

New Topic/Question
Reply




MultiQuote










|