[Linker error] undefined reference to '__dys_tls_init_callback' DevC++ error

I need some help. I opened DevC++, created a new OpenGL project with all the default settings, removed the comments, and compiled. I did not change the code in any way. I got the following errors:

[Linker error] undefined reference to '__dys_tls_init_callback'
[Linker error] undefined reference to '__cup_features_init'

What do those errors mean and, more importantly, how can I get rid of them?
The short answer is Dev-C++ strikes again. Get rid of it and get a better IDE that comes with a modern compiler, for free.
This is a post reply from another forum:
All you have to do, is go to Tools->Compiler Options->Directories->Libraries --
 And delete all entries (don't bother adding anything back, it won't make a difference)
After this the __cpu_features_init linker error should disappear. 
I was able to compile with allegro after deleteing the library paths, because these are global paths, and the allegro path is most likely specified in the project. 
Note you can still compile console applications.
Long story short: You DON'T have to reinstall Dev-C++, and you definatley DON'T have to reformat your computer.
Last edited on
Topic archived. No new replies allowed.