News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

C++ parser options. Is portable solution?

Started by blockn102, October 25, 2008, 04:39:15 AM

Previous topic - Next topic

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:
wxWidgets* => C:\src\wxWidgets, C:\src\boost

My friend settings:
wxWidgetsProject1 => E:\wxWidgets, E:\boost
codeblocks => E:\wxWidgets, E:\codeblocks\devel

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.
...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... ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]