Code::Blocks Forums

User forums => Help => Topic started by: Knx on March 19, 2007, 02:45:07 am

Title: Compiling Code::Blocks
Post by: Knx on March 19, 2007, 02:45:07 am
I've compiled wxWidgets 2.6.3 patch 2. (http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.3_to_develop_Code::Blocks_(MSW))
I opened Code::Blocks and set the paths for the compiler. (http://wiki.codeblocks.org/index.php?title=Global_compiler_variables)

I tried to compile but I keep getting this error:

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

I didn't use any variables, I've used the full path...
Title: Re: Compiling Code::Blocks
Post by: stahta01 on March 19, 2007, 03:09:50 am
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
Title: Re: Compiling Code::Blocks
Post by: 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
Title: Re: Compiling Code::Blocks
Post by: stahta01 on March 19, 2007, 03:53:57 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
Title: Re: Compiling Code::Blocks
Post by: thomas on March 19, 2007, 09:00:37 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.