Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Build fails with

(1/1)

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:

--- Quote ---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)
--- End quote ---
Well, is it compiled or not? Does it work or not?
If you have built wx as DLL then you must use WXUSINGDLL.


--- Quote ---As an extra .... am I able to add project definitions like libraries in the wx widgets project template?
--- End quote ---
Look in share/codeblocks/templates/wxwidgets*.cbp. You can edit them at will.

blinkinhek:

--- Quote from: mandrav on October 26, 2005, 09:15:04 am ---
--- Quote ---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)
--- End quote ---

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

--- End quote ---

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 :)

Navigation

[0] Message Index

Go to full version