Hi all,
Starting with wxWidgets and Code::Blocks I have the following linker problem:
:: === test, Debug ===
obj\Debug\testApp.o:: In function `ZN12wxAppConsole16OnFatalExceptionEv':C:/wxWidgets-2.8.4/include/wx/app.h:(.rdata$_ZTV7testApp[vtable for testApp]+0x44): undefined reference to `wxApp::Initialize(int&, char**)'
:C:\wxWidgets-2.8.4\include\wx\app.h:(.rdata$_ZTV7testApp[vtable for testApp]+0x90):: undefined reference to `wxAppConsole::OnAssertFailure(char const*, int, char const*, char const*, char const*)'
:C:\wxWidgets-2.8.4\include\wx\app.h:(.rdata$_ZTV7testApp[vtable for testApp]+0x94):: undefined reference to `wxAppConsole::OnAssert(char const*, int, char const*, char const*)'
obj\Debug\testMain.o:: In function `ZNK12wxWindowBase10GetMinSizeEv':C:/wxWidgets-2.8.4/include/wx/window.h:(.text$_ZN12wxStringBase10ConcatSelfEjPKc[wxStringBase::ConcatSelf(unsigned int, char const*)]+0x22): undefined reference to `_imp___ZN12wxStringBase10ConcatSelfEjPKcj'
)]+0x27):: undefined reference to `_imp___ZN12wxStringBase8InitWithEPKcjj'
)]+0x47):: undefined reference to `_imp___Z10wxOnAssertPKciS0_S0_S0_
:: === Build finished: 4 errors, 0 warnings ===
I am using wxWidgets-2.8.4, compiled with mingw32 with the following options: USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug/release UNICODE=1
I use Code::Blocks svn 4161 on Windows XP.
I would be grateful if someone could help me with this problem!?!
Zeilhans
link problem Topic is solved
-
- Earned some good credits
- Posts: 106
- Joined: Tue Jan 09, 2007 2:27 pm
- Location: Italy
I don't know the code::blocks ide but I think that you have this error because your ide don't know where the libs are.
Try to find in the help or on the web site how to add a library to the ide.
I had this kind of error with wxdev-cpp and I solve it putting the path of the libraries to the right place!
Try to find in the help or on the web site how to add a library to the ide.
I had this kind of error with wxdev-cpp and I solve it putting the path of the libraries to the right place!
Thank you for your reaction:
I use a nightly build from Code::Blocks., from june 23.
I compiled wxWidgets with mingw32, a debug build and a release build.
So i started Code::Blocks and openend a new project with the wxWidgets wizard. I didn't ad any coding, but build the basic framework to see if compiling and linking went on ok.
Compiling was without errors, but linking gave me the 4 errors shown before.
i realy dont know where to look for an error
Zeilhans
I use a nightly build from Code::Blocks., from june 23.
I compiled wxWidgets with mingw32, a debug build and a release build.
So i started Code::Blocks and openend a new project with the wxWidgets wizard. I didn't ad any coding, but build the basic framework to see if compiling and linking went on ok.
Compiling was without errors, but linking gave me the 4 errors shown before.
i realy dont know where to look for an error
Zeilhans
If you have used the wizard, and you think you installed wxWidgets correctly, then you should post on the C::B forum about a failure of the wizard.zeilhans wrote:Thank you for your reaction:
I use a nightly build from Code::Blocks., from june 23.
I compiled wxWidgets with mingw32, a debug build and a release build.
So i started Code::Blocks and openend a new project with the wxWidgets wizard. I didn't ad any coding, but build the basic framework to see if compiling and linking went on ok.
Compiling was without errors, but linking gave me the 4 errors shown before.
i realy dont know where to look for an error
Zeilhans
Usually i'd advise to use wx-config, but it doesn't work on windows AFAIK (why does the windows version seem to always cause that much linking problems other platforms don't have?? ) so i'll need to let windows experts answer (or look for the apparently unofficial wx-config for windows here : http://wxconfig.googlepages.com/ - but from there i can't help you any more)