Menu

[Linker error] undefined reference to ...

2008-09-12
2012-09-26
  • Hans Mustermann

    Hans Mustermann - 2008-09-12

    Hello @all
    I installed dev C++ and just for test i made a simple Hello world
    application:
    I'm using Ansi C.
    Here's my Code:

    include <stdio.h>

    include <stdlib.h>

    int main(int argc, char *argv[])
    {
    printf("Hallo");
    getchar();
    //system("PAUSE");
    return 0;
    }

    Every time I compile, I get following error message:

    [Linker error] undefined reference to `__cpu_features_init'
    ld returned 1 exit status
    [Build Error] [Project1.exe] Error 1

    Which Bib or sth. else am I missing in my Dev-C++,
    how can I fix this.

    Hope someone can help me...

    Best regards
    mx

     
    • Wayne Keen

      Wayne Keen - 2008-09-12

      That question is answered in the thread titled (not accidentally) "Please Read Before Posting a Question".

      If, for some reason, you are still having a problem, please post your full Basic 3, they are also covered in that thread.

      Please take a moment to look through it, there is a lot of valuable information in it.

      Wayne

       

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.