User forums > Using Code::Blocks

Include directories

(1/1)

mozmck:
Howdy,

I'm using a custom makefile on a pre-existing project and am having a few problems.  When I right click on an #include directive in a source file and select "Open #include file: 'xxx.h'" it tells me it can't find it.  Where do I put the search paths for include files?

Secondly, what is the best way to import a standard make or automake/autoconf project?  It doesn't seem that there's any support for that yet that I can see.

Thanks,
Moses

Oulaxer11:
I have posted to this same problem and have not rx'd any reply... Should I open a bug on this instead?

MortenMacFly:

--- Quote from: Oulaxer11 on March 17, 2008, 04:41:02 pm ---Should I open a bug on this instead?

--- End quote ---
No. This is not a bug. Add additional dorectories for the parser within the project options under the tab "C/C++ parser options". Probably in addition to the usual project's (target's) build options (compiler search directories) if you like for clarity.

mozmck:
I figured out about the C/C++ parser options and compiler search directories after a bit of searching a fiddling with things.  It was hard to find information on what those options were for.

I don't have a usual projects build options because this project is using autoconf/automake and so I checked the box saying this is a custom makefile.  There doesn't seem to be much information on using it that way yet, but I would suspect that this will be quite common for people on linux.

I will say that I'm starting to like Code::Blocks quite well as I get familiar with it.

Navigation

[0] Message Index

Go to full version