User forums > Help

cannot find -lwxmsw

(1/2) > >>

gregn:
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?

thomas:
SHARED=1 != static

gregn:
Thanks a lot! It helpled!  :D

mayowa:
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?

Michael:
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

Navigation

[0] Message Index

[#] Next page

Go to full version