Click here to Skip to main content
15,889,867 members

Comments by Sami_hun (Top 4 by date)

Sami_hun 5-Jan-14 15:13pm View    
I could solve that. Almost killed my mind... Sorry everybody. The problem was that I install mingw earlier into c:\\, and I set the enviroment variable to the folder. I delete this mingw folder and it makes everything works fine. I read the solution here: http://bytes.com/topic/c/answers/838602-bloodshed-dev-c-linker-error-undefined-reference-cpu_features_init
Sami_hun 5-Jan-14 10:42am View    
Ok I tried to install freeglut for visual studio. I couldn't find a valid description of the installing. All of them are non-working. Then I install DevC++. Made a new opengl projekt and got the same sh*t as the case of CodeBlocks.
I failed. And I am very angry now.

So... the question is that. What does it means:
[Linker error] undefined reference to `__dyn_tls_init_callback'
[Linker error] undefined reference to `__cpu_features_init'
[Linker error] undefined reference to `__chkstk_ms'
[Linker error] undefined reference to `__mingw_glob'

(These are the error messages of a new DevC++ base opengl project)

Does anybody know the answer?
Sami_hun 4-Jan-14 17:37pm View    
the build command:
mingw32-g++.exe -L"c:\Program Files\CodeBlocks\MinGW\lib" -o "bin\Debug\graphiv test.exe" obj\Debug\main.o -lglut32 -lopengl32 -lglu32 -lwinmm -lgdi32
Sami_hun 4-Jan-14 17:20pm View    
Yes I did. I use gcc.