Thread: wxdevC++

  1. #1
    Anirban Ghosh
    Join Date
    Jan 2006
    Posts
    278

    wxdevC++

    I have created a CONSOLE PROJECT in "wxdevC++ 6.10.1" in C. But when I am trying to compile it the following error is given. What should I do?

    [Linker Error] undefined reference to `__cpu_features_init'

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    In less time than you took typing this thread, you could have found it on a search engine.


    Quzah
    Hope is the first step on the road to disappointment.

  3. #3
    Anirban Ghosh
    Join Date
    Jan 2006
    Posts
    278
    Well, thanx for the link but i could not get my answer! Many are in different language...

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    The posts I saw with that error lacked the proper library or include file. Stdlib.h and string.h were mentioned explicitly.

    Another poster stated that fixing a double equal sign (indicating an equality test should be made), with a single assignment operator of just one equal sign, fixed it for him.

    Something worth a look, anyway.

    Adak

  5. #5
    Anirban Ghosh
    Join Date
    Jan 2006
    Posts
    278
    Well thanX!!!!
    Anyone plz help me with a definite answer please!

  6. #6
    Lean Mean Coding Machine KONI's Avatar
    Join Date
    Mar 2007
    Location
    Luxembourg, Europe
    Posts
    444
    kk, np. change ur IDE or try 2 post ur code. kthxbye ?

  7. #7
    Anirban Ghosh
    Join Date
    Jan 2006
    Posts
    278
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    
    int main(int argc, char *argv[])
    {
      
      system("PAUSE");	
      return 0;
    }
    Just the simplest console project possible!

  8. #8
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    A simpler version wouldn't include command line arguments, since you don't actually use yours; and a more portable one wouldn't use system("PAUSE");


    Quzah.
    Hope is the first step on the road to disappointment.

  9. #9
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Actually, I believe that's the default code for a new console app source file. Bad idea on the part of the designers, but the OP's statement is true.
    Just the simplest console project possible!
    What are your compiler options? Have you ever been able to compile programs or is this a new development?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  10. #10
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Code:
    int main( void )
    {
        return 0;
    }
    There's the simplest, portable console application.


    Quzah.
    Hope is the first step on the road to disappointment.

  11. #11
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Indeed. But neither code should be causing that undefined reference.

    Do you perhaps have a project open (an Allegro one?), and it's trying to compile that?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  12. #12
    Anirban Ghosh
    Join Date
    Jan 2006
    Posts
    278
    Compiler options are OK!!! but still its giving such msg!!

  13. #13
    Anirban Ghosh
    Join Date
    Jan 2006
    Posts
    278
    Any other reply please!

  14. #14
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    http://beranger.org/index.php?fullarticle=2465

    In short, get a new compiler. You could have downloaded a new one and installed it and had it all taken care of, on dial up, in the time you taken with this issue.


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed