Author Topic: problem of lwxmsw  (Read 6521 times)

young

  • Guest
problem of lwxmsw
« 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.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: problem of lwxmsw
« Reply #1 on: October 20, 2005, 05:32:37 pm »
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."

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: problem of lwxmsw
« Reply #2 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.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: problem of lwxmsw
« Reply #3 on: October 20, 2005, 09:10:05 pm »
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."

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: problem of lwxmsw
« Reply #4 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.

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: problem of lwxmsw
« Reply #5 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:

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: problem of lwxmsw
« Reply #6 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

young

  • Guest
Re: problem of lwxmsw
« Reply #7 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?

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: problem of lwxmsw
« Reply #8 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)