Menu

Compiler error that I can't figure out...

Mr31337
2008-02-02
2012-09-26
  • Mr31337

    Mr31337 - 2008-02-02

    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!

     
    • Wayne Keen

      Wayne Keen - 2008-02-02

      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

       
    • Mr31337

      Mr31337 - 2008-02-03

      OK, I figured it out. I had another compiler installed that I forgot about and they were conflicting. Also, thanks for the tip Wayne.

       
      • Wayne Keen

        Wayne Keen - 2008-02-03

        Good job.

        Out of curiosity, which compiler was it? The GCC from Cygwin?

        Wayne

         
    • Mr31337

      Mr31337 - 2008-02-03

      yes it was actually.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.