News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

problem of lwxmsw

Started by young, October 20, 2005, 05:30:01 PM

Previous topic - Next topic

young

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.

thomas

Use -lwxmsw242 or -lwxmsw260 (or whatever matches the version you have).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

rickg22

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.

thomas

Static linkage to wxWidgets gives a ~1MB HelloWorld application...  (gulp)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

rickg22

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.

Urxae

Quote from: rickg22 on October 20, 2005, 11:05:36 PM
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:

thomas

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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

young

But why is this a problem, is it because the new version changed the name of the file or something else?

rickg22

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)