Thread: Compile error

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    3

    Compile error

    Hey, I'm new to C programming and I am using Dev-C++ 4.9.9.2 on Windows Vista 32-bit version. For the example code the book had me do, I ran it and it gave me the error:

    Code:
      [Linker error] undefined reference to `__cpu_features_init' 
      ld returned 1 exit status
    Here is the example code:

    Code:
    #include <stdio.h>
    
    int main()
    {
        printf("Goodbye, cruel world!\n");
        return(0);
    }
    Any help with this would be appreciated. Thank you.

  2. #2
    Registered User carrotcake1029's Avatar
    Join Date
    Apr 2008
    Posts
    404
    This is due to a library clash, or so I have read. Do you have multiple installations of MinGW by any chance?

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    You have 2 copies of MinGW installed. Move one of them out of PATH.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. DX - CreateDevice - D3DERR_INVALIDCALL
    By Tonto in forum Game Programming
    Replies: 3
    Last Post: 12-01-2006, 07:17 PM
  4. error: template with C linkage
    By michaels-r in forum C++ Programming
    Replies: 3
    Last Post: 05-17-2006, 08:11 AM
  5. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM