User forums > General (but related to Code::Blocks)

C++ parser options. Is portable solution?

(1/1)

blockn102:
I think CB save the path of "C++ parser options" in cbp file is not good.

My solutions:

* Add Global C++ parser options
* Detect path by name of project (or regex match)
Example, I have a project wxWidgetsProject1. Global C++ parser:

--- Code: ---wxWidgets* => C:\src\wxWidgets, C:\src\boost
--- End code ---

My friend settings:

--- Code: ---wxWidgetsProject1 => E:\wxWidgets, E:\boost
--- End code ---

--- Code: ---codeblocks => E:\wxWidgets, E:\codeblocks\devel
--- End code ---

This solution is easy to share project, group work.

Thanks for read this.

MortenMacFly:

--- Quote from: blockn102 on October 25, 2008, 04:39:15 am ---I think CB save the path of "C++ parser options" in cbp file is not good.

--- End quote ---
...that's exactly why global compiler variables (GCV) were introduced. Read about this concept in the Wiki. It will resolve your issues and even more... ;-)

Navigation

[0] Message Index

Go to full version