Author Topic: Compiling Code::Blocks  (Read 4531 times)

Offline Knx

  • Multiple posting newcomer
  • *
  • Posts: 41
Compiling Code::Blocks
« on: March 19, 2007, 02:45:07 am »
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 ===

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)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Compiling Code::Blocks
« Reply #1 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
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Knx

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: Compiling Code::Blocks
« Reply #2 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
Using:
• Code::Blocks SVN        • wxWidGets 2.8.6
• Windows XP SP2          • MinGW Latest  Wish List • Code folding (For wxSmith and more options like NetBeans)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: Compiling Code::Blocks
« Reply #3 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
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Compiling Code::Blocks
« Reply #4 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."