User forums > Help

Compiling Code::Blocks

(1/1)

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:


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

I didn't use any variables, I've used the full path...

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

Knx:
Oh, I see...

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

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

--- End quote ---

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

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

--- End quote ---
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.

Navigation

[0] Message Index

Go to full version