User forums > Help

wxWidgets 2.6 (MSW, GCC) installation instructions

<< < (8/29) > >>

jmccay:
I just started a new project using RC1-1 using the wxWidgets template.  I get the following linker error:


--- Code: ---C:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw
--- End code ---

I don't understand why it's not finding the the wxmsw library.  What's the sepcific name of the library.  I have a "libwxmsw26.a".  I have the DLLs in both the windows/system32 directory and in the same directory as the .a the paths are all set in the search directories.  I am at a loss.  I compiled an earlier project created with the Final-Beta, and it ran.

Any suggestions?
Joe M.

rickg22:
If you have libwxmswNN.a, that means you want a Dynamically-linked wxwidgets application. There's another template for that.

After you create your project, there's a wxmsw242 in your project's linker options. change it to wxmsw26 and you're done.

jmccay:
Wow that did it--after I changed the linked library to 26.  I feel dumb.  I didn't even notice there was an option to chose static or dynamic linked libraries.  What do you need to statically link the libraries?  If I remember it's .lib.  How can I produce those if I wanted to?  Man, I wish Visual Studio taught you things like this.  It tends to hide these details from you.
  Now I am going to change the templates to reflect 26.  If I figure out how to do it, do you guys want the file(s)?
Joe M.

jmccay:
It's done and working.  I didn't test the 2.4.2 because I don't have it installed.  I just test on version.  The change was minimal.  I appended a _26 to the new file--as you will see when you get it.  It might be a good idea in the future to do something similar, and it might be possible to add platform abbreviation such as _26_msw in the future if someone has multiple target platforms.
Joe M.

rickg22:
For dynamic libraries, the .lib files are linked so the application can interface with the DLL.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version