Code::Blocks Forums

User forums => Help => Topic started by: young on October 20, 2005, 05:30:01 pm

Title: problem of lwxmsw
Post 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.
Title: Re: problem of lwxmsw
Post by: thomas on October 20, 2005, 05:32:37 pm
Use -lwxmsw242 or -lwxmsw260 (or whatever matches the version you have).
Title: Re: problem of lwxmsw
Post by: rickg22 on October 20, 2005, 07:55:36 pm
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.
Title: Re: problem of lwxmsw
Post by: thomas on October 20, 2005, 09:10:05 pm
Static linkage to wxWidgets gives a ~1MB HelloWorld application...  (gulp)
Title: Re: problem of lwxmsw
Post by: rickg22 on October 20, 2005, 11:05:36 pm
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.
Title: Re: problem of lwxmsw
Post by: Urxae on October 21, 2005, 12:18:55 am
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:
Title: Re: problem of lwxmsw
Post by: thomas on October 21, 2005, 12:26:57 am
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.
Title: Re: problem of lwxmsw
Post by: young on October 21, 2005, 06:09:55 pm
But why is this a problem, is it because the new version changed the name of the file or something else?
Title: Re: problem of lwxmsw
Post by: rickg22 on October 21, 2005, 07:43:12 pm
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)