User forums > Help

wxWidgets Project (cannot find -lwxmsw26) [Solved]

(1/5) > >>

Slider:
Hi, I hope someone can help me with this problem, I've read as much as I can about it, but can find no difinitive solution.

I'm using Code::Blocks 1.0 RC2 with the MinGW compiler - this works fine.

I've installed wxWidgets and compiled them by:
cd C:\wxWidgets\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

I've created a new wxWidgets project using the supplied template, but when building I get the following error:
cannot find -lwxmsw26

I've checked the project "build options", under "link libraries" wxmsw26 is listed. (I understand using this type of link lib is best)

However, I can't find libwxmsw.a in C:\wxWidgets\lib\gcc_dll

Any ideas?

Urxae:
Two questions:

* What version of wx did you compile? If it wasn't 2.6.* you might have to change that filename to reflect the library created.
* Did you add the lib's directory to the linker search path?

Slider:
Hi,

I compiled version 2.6.2

As for the linker search path, I haven't added or changed anything manually. In Project>>Build Options>>Directories tab>>Linker tab I have:
$(WX_DIR)\lib\gcc_dll$(WX_CFG)

sethjackson:

--- Quote from: Slider on December 05, 2005, 12:48:14 am ---Hi,

I compiled version 2.6.2

As for the linker search path, I haven't added or changed anything manually. In Project>>Build Options>>Directories tab>>Linker tab I have:
$(WX_DIR)\lib\gcc_dll$(WX_CFG)

--- End quote ---

Add to linker.

$(WX_DIR)\lib\gcc_dll
$(WX_DIR)\lib\gcc_dll\msw

Add to compiler.

$(WX_DIR)\include
$(WX_DIR)\lib\gcc_dll
$(WX_DIR)\lib\gcc_dll\msw

And change your WX_DIR to "C:\wxWidgets".

Your compiler defines should have WXUSINGDLL or something like that. I use static can't remerber what that option was....

Slider:

--- Quote from: Seth Jackson on December 05, 2005, 12:53:25 am ---
--- Quote from: Slider on December 05, 2005, 12:48:14 am ---Hi,

I compiled version 2.6.2

As for the linker search path, I haven't added or changed anything manually. In Project>>Build Options>>Directories tab>>Linker tab I have:
$(WX_DIR)\lib\gcc_dll$(WX_CFG)

--- End quote ---

Add to linker.

$(WX_DIR)\lib\gcc_dll
$(WX_DIR)\lib\gcc_dll\msw

Add to compiler.

$(WX_DIR)\include
$(WX_DIR)\lib\gcc_dll
$(WX_DIR)\lib\gcc_dll\msw

And change your WX_DIR to "C:\wxWidgets".

Your compiler defines should have WXUSINGDLL or something like that. I use static can't remerber what that option was....

--- End quote ---

Thanks for the suggestion, I've followed what you said, but its still throwing up the same error.

Navigation

[0] Message Index

[#] Next page

Go to full version