News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Compiling Code::Blocks

Started by Knx, March 19, 2007, 02:45:07 AM

Previous topic - Next topic

Knx

I've compiled wxWidgets 2.6.3 patch 2.
I opened Code::Blocks and set the paths for the compiler.

I tried to compile but I keep getting this error:

ld.exe:: cannot find -lwxmsw242
:: === Build finished: 1 errors, 0 warnings ===


I didn't use any variables, I've used the full path...
Using:
• Code::Blocks SVN        • wxWidGets 2.8.6
• Windows XP SP2          • MinGW Latest  Wish List • Code folding (For wxSmith and more options like NetBeans)

stahta01

The errors says the project is NOT able to find library wxmsw242, this is an wxWidgets 2.4 library name.

Do you have 2.4 wxWidgets on your computer?

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Knx

Oh, I see...

I don't have it, I tought I could compile with 2.6.x
Thanks, I will try
Using:
• Code::Blocks SVN        • wxWidGets 2.8.6
• Windows XP SP2          • MinGW Latest  Wish List • Code folding (For wxSmith and more options like NetBeans)

stahta01

Quote from: Knx on March 19, 2007, 03:32:55 AM
Oh, I see...

I don't have it, I tought I could compile with 2.6.x
Thanks, I will try

You might be able to compile with 2.6.x, but without knowing what you are compiling there is no way to say yes or no.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

thomas

Quote from: Knx on March 19, 2007, 03:32:55 AM
Oh, I see...

I don't have it, I tought I could compile with 2.6.x
Thanks, I will try
The opposite is the case, you should really be using 2.6  -- wxWidgets 2.4 is dead.

The linker error you get is because you try to link against some wxWidgets 2.4 library in your project (wrong setting in link libraries).

Also please note that if you intend to develop with Code::Blocks (not for Code::Blocks) then you might consider using wxWidgets 2.8 instead (current official release).
wxWidgets is not source-compatible between releases, you always have to patch many things when moving from one release to the next. Thus, when you're just starting out, you may want to start using 2.8 right away. Migrating at a later time will mean additional pain.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."