Author Topic: cannot find -lwxmsw  (Read 4423 times)

gregn

  • Guest
cannot find -lwxmsw
« on: February 15, 2006, 01:00:35 pm »
I know that there's a topic with the same subject, but I've tried everything that I found there, and nothing helped.

I would like to use wxWidgets as a static library. I compiled it with a batch file containing this:

cd C:\wxWidgets-2.6.2 \build\msw
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=0 VENDOR=cb
cd ..\..\contrib\build\stc
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=0 VENDOR=cb

Everything went fine (except for some warnings, but that's normal as far as I know), and compilation goes well, but when it gets to linking, I always end up with the error message in the subject...

Could anyone please help me?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: cannot find -lwxmsw
« Reply #1 on: February 15, 2006, 01:09:57 pm »
SHARED=1 != static
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

gregn

  • Guest
Re: cannot find -lwxmsw
« Reply #2 on: February 15, 2006, 03:41:06 pm »
Thanks a lot! It helpled!  :D

mayowa

  • Guest
Re: cannot find -lwxmsw
« Reply #3 on: February 16, 2006, 12:53:02 pm »
funny enough i had the same problem this morning but i solved it by
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=0

My question is , what exactly does SHARED=1 != static do?

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: cannot find -lwxmsw
« Reply #4 on: February 16, 2006, 01:14:45 pm »
If you would like to build wxWidgets as static library (.lib or .a) then you should use SHARED=0.

SHARED=1 if you would like to build wxWidgets as dynamic library (.dll, or .so i.e., shared object(s), in Linux).

Best wishes,
Michael

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: cannot find -lwxmsw
« Reply #5 on: February 16, 2006, 01:24:42 pm »
Quote
My question is , what exactly does SHARED=1 != static do?
SHARED=1 "is not equal" shared.

http://wxforum.shadonet.com/ is a forum specialised in questions referring to wxWidgets. You will find your answers there.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

mayowa

  • Guest
Re: cannot find -lwxmsw
« Reply #6 on: February 16, 2006, 01:30:21 pm »
Micheal, my mistake copied the wrong cmd
this is what i used: mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 UNICODE=0
it complied as a static i guess that means SHARED=0 is the default.