Author Topic: Linux Newbie, needs help linking with codeblocks  (Read 2869 times)

Offline sipickles

  • Multiple posting newcomer
  • *
  • Posts: 19
Linux Newbie, needs help linking with codeblocks
« on: May 29, 2007, 09:30:09 am »
hi,

I am experienced using IDEs on windows but am finally trying Ubuntu Linux.

I want to use codeblocks but can't get it to link to files and don't know how rto do this in Ubuntu.

For example, I am building a GUI project with wxwidgets. When I try to build for the first time, I get errors like

"cannot find include file wx/wxwidgets.h"

I think wxwdigets is installed when codeblocks is installed, yes? so how do I link to it?

Many thanks, and be gentle with me :)

Simon

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Linux Newbie, needs help linking with codeblocks
« Reply #1 on: May 29, 2007, 09:48:23 am »
In your PC wxWidgets runtime has been installed. Install another package which is postfixed with "devel". E.g., if you've installed wxGTK-2.6.3 package then look for wxGTK-2.6.3-devel package too.

Remember the package name I mentioned here is for explanation only.
Be a part of the solution, not a part of the problem.

Offline manmach

  • Multiple posting newcomer
  • *
  • Posts: 39
Re: Linux Newbie, needs help linking with codeblocks
« Reply #2 on: May 29, 2007, 12:03:58 pm »
Simon,

You might want to work on your knowledge of your tools too.
The error you get is a compiler error, not a linker error. Your compiler is telling you that it cannot find a certain file, probably because, as Biplab noted, you have not installed the development package of wxWidgets.

Understanding your tools is essential in figuring out what is causing error messages.