Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: sipickles on May 29, 2007, 09:30:09 am

Title: Linux Newbie, needs help linking with codeblocks
Post by: sipickles 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
Title: Re: Linux Newbie, needs help linking with codeblocks
Post by: Biplab 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.
Title: Re: Linux Newbie, needs help linking with codeblocks
Post by: manmach 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.