Code::Blocks Forums
User forums => Help => Topic started by: young on October 20, 2005, 05:30:01 pm
-
hi, I copied the "hello world" of wxwidgets from the web to C::B to compile, the message says "cannot find -lwxmsw", I would like to know the reason of this and what can I do about it,
cause I think the wxwidgets in the C::B I am using is a bit old.
-
Use -lwxmsw242 or -lwxmsw260 (or whatever matches the version you have).
-
But that would make it a DLL version. Anyway, you need to compile wxwidgets into making a non-DLL lib, this one will be the libwxmsw.a you're looking for.
-
Static linkage to wxWidgets gives a ~1MB HelloWorld application... (gulp)
-
That's why the new templates have statically or dynamially linked wxWidgets so you can choose :) And Visual Basic programs are around 1MB too. So it's not that bad.
-
And Visual Basic programs are around 1MB too. So it's not that bad.
What are you saying? That Visual Basic isn't bad? :lol:
-
Lol, Urxae :D
Hey, who wants to join me on a new project? We write a Java virtual machine in Visual Basic and reimplement Code::Blocks in that environment.
-
But why is this a problem, is it because the new version changed the name of the file or something else?
-
Not exactly, the new version just is more specific regarding what kind of wxwidgets library you want to link with. I think the old version only used the static wxwidgets library, but I don't remember well.
In any case, if you don't mind using the DLL, feel free to use the libwxmsw242 (number may vary depending on which wxwidgets version you're using)