News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Build fails with

Started by blinkinhek, October 25, 2005, 11:40:52 PM

Previous topic - Next topic

blinkinhek

I get the following (extracted from a long list of errors) when building my first wxWidgets (with THIS IDE) app.

Linking executable: C:\CodeBlocks\projects\test\test.exe
.objs\base.o:base.cpp:(.text$_ZN6wxMenuC1El[wxMenu::wxMenu(long)]+0x1d): variable 'vtable for wxMenu' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
etc, etc

If I use WXUSINGDLL as per the Wiki, then I can get the build done ... but I should be able to link the Libraries.... what am I doing wrong? (I believe I have the libs identified in the project options)

As an extra .... am I able to add project definitions like libraries in the wx widgets project template?

mandrav

QuoteIf I use WXUSINGDLL as per the Wiki, then I can get the build done ... but I should be able to link the Libraries.... what am I doing wrong? (I believe I have the libs identified in the project options)
Well, is it compiled or not? Does it work or not?
If you have built wx as DLL then you must use WXUSINGDLL.

QuoteAs an extra .... am I able to add project definitions like libraries in the wx widgets project template?
Look in share/codeblocks/templates/wxwidgets*.cbp. You can edit them at will.
Be patient!
This bug will be fixed soon...

blinkinhek

Quote from: mandrav on October 26, 2005, 09:15:04 AM
QuoteIf I use WXUSINGDLL as per the Wiki, then I can get the build done ... but I should be able to link the Libraries.... what am I doing wrong? (I believe I have the libs identified in the project options)

Well, is it compiled or not? Does it work or not?
If you have built wx as DLL then you must use WXUSINGDLL.

when I use WXUSINGDLL, then the app compiles and links, and executes OK. 
I built wx following the steps in the Codeblocks Wiki which gives:
"mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 VENDOR=cb"

Does this produce a DLL version ?
If so then, I hadn't realised, and I now feel really stupid :{

mandrav

Yes, SHARED=1 produces a DLL :)
Be patient!
This bug will be fixed soon...