Cannot compile using newly installed wxDevC++

So I downloaded the latest version of wxDevC++ and everything seemed to go smoothly.
To test to see if it worked, I created a new wxWidgets frame project and tried to compile it (without modifying anything).
It did compile but instead gave the following message in the compiler:
1
2
3
[Linker Error] undefined reference to `__dyn_tls_init_callback'
ld returned 1 exit status
C:\xampp\htdocs\learning\c++\wx\Makefile.win [Build Error]  [Output/MingW/hello.exe] Error 1 

And the following in the compile log:
1
2
3
4
5
6
7
8
9
10
11
12
13
Compiler: Default GCC compiler
Building Makefile: "C:\xampp\htdocs\learning\c++\wx\Makefile.win"
Executing  make...
mingw32-make.exe -f "Makefile.win" all 
g++.exe -c helloApp.cpp -o Objects/MingW/helloApp.o -I"C:/Users/Public/programs/Dev-Cpp/lib/gcc/mingw32/3.4.5/include" -I"C:/Users/Public/programs/Dev-Cpp/include/c++/3.4.5/backward" -I"C:/Users/Public/programs/Dev-Cpp/include/c++/3.4.5/mingw32" -I"C:/Users/Public/programs/Dev-Cpp/include/c++/3.4.5" -I"C:/Users/Public/programs/Dev-Cpp/include" -I"C:/Users/Public/programs/Dev-Cpp/" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty/wx/plotctrl" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty/wx/sheet" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty/wx/treemultictrl" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty/wx/things" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty/wx" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/msw" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/generic" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/fl" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/gizmos" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/html" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/mmedia" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/net" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/ogl" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/plot" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/protocol" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/stc" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/svg" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/xml" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/xrc" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx" -I"C:/Users/Public/programs/Dev-Cpp/include/common" -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__   -fexpensive-optimizations -O3 
g++.exe -c helloFrm.cpp -o Objects/MingW/helloFrm.o -I"C:/Users/Public/programs/Dev-Cpp/lib/gcc/mingw32/3.4.5/include" -I"C:/Users/Public/programs/Dev-Cpp/include/c++/3.4.5/backward" -I"C:/Users/Public/programs/Dev-Cpp/include/c++/3.4.5/mingw32" -I"C:/Users/Public/programs/Dev-Cpp/include/c++/3.4.5" -I"C:/Users/Public/programs/Dev-Cpp/include" -I"C:/Users/Public/programs/Dev-Cpp/" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty/wx/plotctrl" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty/wx/sheet" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty/wx/treemultictrl" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty/wx/things" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty/wx" -I"C:/Users/Public/programs/Dev-Cpp/include/3rdparty" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/msw" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/generic" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/fl" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/gizmos" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/html" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/mmedia" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/net" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/ogl" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/plot" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/protocol" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/stc" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/svg" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/xml" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx/xrc" -I"C:/Users/Public/programs/Dev-Cpp/include/common/wx" -I"C:/Users/Public/programs/Dev-Cpp/include/common" -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__   -fexpensive-optimizations -O3 
"windres.exe" --input-format=rc -o Objects/MingW/hello_private.res --include-dir "C:/Users/Public/programs/Dev-Cpp/include/common" Objects/MingW/HELLO_~1.RC -O coff 
g++.exe "Objects/MingW/helloApp.o" "Objects/MingW/helloFrm.o" Objects/MingW/hello_private.res -o "Output/MingW/hello.exe" -L"C:/Users/Public/programs/Dev-Cpp/Lib" -mwindows -lwxmsw28 -lwxmsw28_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32    
/mingw/lib/crt2.o:crt1.c:(.text+0x28): undefined reference to `__dyn_tls_init_callback'
collect2: ld returned 1 exit status 
mingw32-make.exe: *** [Output/MingW/hello.exe] Error 1 
Execution terminated
Compilation Failed. Make returned 2 


I read on the wxWidgets forum that there was a permission issue with some of the example
applications if it was installed to the “Program Files (X86)” directory so I reinstalled the
application to a public directly that did not have any rested permissions. I still got the same
error though. I’m not that familiar with c++ so any help would be greatly appreciated.
Last edited on
I have also tried a simple “hello world” and got the same result.
Perhaps you downloaded the IDE without the compiler? Or maybe you didn't get all of the proper libraries in your download?
Topic archived. No new replies allowed.