User forums > Using Code::Blocks
Any easy way to add many search directory locations?
johu:
Hi, I'd like to support the "request for a feature" of the OP. I'm come from SNiFF+ IDE (which is dead) which has features to generate the include directives for compiling automatically and also the library list for linking in an executable project. The generation of this clauses is based on the project dependencies (So I don't understand why are dependencies of projects are properties of the workspace and not of the projects themselves). As an impression what I have in mind: I write down an declaration "SomeClass m_xyz;". If SomeClass is somewhere declared in workspace, CB can navigate me to the declaration of this class in an other project. What about entries in the context menu (after "Find implementation of: 'SomeClass') with content "Add a dependency to project containing "'SomeClass'", "Add the search directory to compiler options", "Add a library entry to link option list"? I think, opening the context menu, CB has all information in the hand to do this. The plugins Library Finder and Header Fixup are doing similar tasks but for stuff out off CB but not for organizing the CB workspace itself. At the moment I'm not able to implement such things myself because I have to prepare the migration from SNiFF+ to CB in our team. That means the conversion of hundred of projects (!) for which I'm writing an converter which produces *.cbp- and *.workspace files automatically. This seems to be solvable but other questions as mentioned above I have to solve also.
Regards
j.
rioki:
There is a slightly hacky solution...
Open the cbp file in a text editor and add the include paths by hand. This is much faster if they follow a pattern. You can even write a small script to output them.
Warning: Remember to back up you file and close any CB instances that may have the file...
Navigation
[0] Message Index
[*] Previous page
Go to full version