News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Additional includes per file?

Started by brainbug, July 18, 2010, 10:41:06 AM

Previous topic - Next topic

brainbug

In our projects we typically want to restrict use of certain headers to specific files. This works in VS and in Netbeans but I have found no way of doing that in Code::Blocks. Is this possible?

oBFusCATed

Example please and how you do it in VS/Netbeans?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

brainbug

We have a modular code structure that only allows source files inside a module to access the private headers in that module other sources are not allowed to access these headers.

In VS you simply right click the source file and select properties. In the "Additional Include Directories" you simply add the header directories you want to use for the file. It works just like adding it to the project except that it only affects one file.