User forums > Help
undefined reference to `wxAppConsole::CreateLogTarget()
skyplus:
my codeblocks version is 4425.
It used to be good, but now, it will fail linking for every project, including its defualt little project with a single button.
Even with my old projects which work good before.
This ever happened weeks ago, i re-installed CodeBlock and deleted all its configuration files that time, then it became
work again, so i though that's the problem with configure issues.
Now, i do the same thing but the problem remains. That's killing me...Please help
Build log:
-------------- Build: Debug in renjie ---------------
Compiling: renjieApp.cpp
Compiling: renjieMain.cpp
Linking executable: bin/Debug/renjie
obj/Debug/renjieApp.o:(.rodata._ZTV9renjieApp[vtable for renjieApp]+0x78): undefined reference to `wxAppConsole::CreateLogTarget()'
obj/Debug/renjieApp.o:(.rodata._ZTV9renjieApp[vtable for renjieApp]+0x7c): undefined reference to `wxAppConsole::CreateMessageOutput()'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 7 seconds)
2 errors, 0 warnings
For every Project, the SAME two undefined references.
skyplus:
sorry, forgot to tell the OS, it's Ubuntu 7.04
with gtk+2.x.
stahta01:
Please turn on full command line. And post build info.
Compiling: Settings -> Compiler and Debugger -> Tab "Other" -> Compiler logging = "Full command line".
Edit: wxWidgets version and type will help a lot also.
Tim S
skyplus:
--- Quote from: stahta01 on October 24, 2007, 07:16:03 am ---Please turn on full command line. And post build info.
Compiling: Settings -> Compiler and Debugger -> Tab "Other" -> Compiler logging = "Full command line".
Edit: wxWidgets version and type will help a lot also.
Tim S
Thanks Tim!
The problem has been solved. :D
--- End quote ---
IsiPrimax:
Hi i have self problem
Windows XP SP2, CodeBlocks, MinGW 3.4.5 and wxwidgets 2.8.6
Debug = works!
Release = error?!
-------------- Build: Release in test ---------------
mingw32-g++.exe -LI:\wxWidgets-2.8.6\lib\gcc_lib -LF:\MinGW\lib -o bin\Release\test.exe obj\Release\testApp.o obj\Release\testMain.o obj\Release\resource.res -s -lwxmsw28u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows
obj\Release\testApp.o:testApp.cpp:(.rdata$_ZTV7testApp[vtable for testApp]+0x90): undefined reference to `wxAppConsole::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*)'
obj\Release\testApp.o:testApp.cpp:(.rdata$_ZTV7testApp[vtable for testApp]+0x94): undefined reference to `wxAppConsole::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)'
obj\Release\testMain.o:testMain.cpp:(.text$_ZNK12wxWindowBase7GetNameEv[wxWindowBase::GetName() const]+0x8c): undefined reference to `wxOnAssert(wchar_t const*, int, char const*, wchar_t const*, wchar_t const*)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 4 seconds)
3 errors, 0 warnings
cya
Navigation
[0] Message Index
[#] Next page
Go to full version