User forums > Using Code::Blocks

what does the new project wizard do when you specify wxWidgets settings exactly?

(1/2) > >>

ouch:
I have a project that was created with the use wx as a DLL option checked. I now would like to link statically, but I'm getting and odd warning message:


--- Code: ---c:/tdm-mingw32/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: C:\wxwidgets\WX_2_9_0_BRANCH\lib\gcc_lib\/libwxmsw29u.a(monolib_containr.o): warning: duplicate section `.rdata$_ZTV20wxObjectEventFunctor[vtable for wxObjectEventFunctor]' has different size

--- End code ---

I have a hunch it's telling me It's still trying to link dynamically but in addition it's linking statically causing this warning.

So I guess my question is if a codeblocks project file has settings somewhere that controls whether an gui app is statically linked or dynamically linked to wxwidgets?

MortenMacFly:

--- Quote from: ouch on June 06, 2011, 08:28:16 pm ---So I guess my question is if a codeblocks project file has settings somewhere that controls whether an gui app is statically linked or dynamically linked to wxwidgets?

--- End quote ---
Yes, you'll need to apply the correct compiler and linker settings for the static version of wxWidgets. Consult the wxWidgets documentation accordingly. Alternatively use the wxWidgets wizard to create yourself a skeleton for using wxWidgets statically.

ouch:
but that's what I mean, Codeblocks itself doesn't have settings for that right? it's all just compiler and linker options right?

oBFusCATed:
Right... What is the problem with that?
Why don't you read the FAQ: http://wiki.codeblocks.org/index.php?title=FAQ ?

ouch:
theres nothing wrong with that. These warnings are puzzling me, and I just wanted to make sure that codeblocks itself wasn't responsible for it, and that's it's just my compiler or linking flags or something.

Navigation

[0] Message Index

[#] Next page

Go to full version