Author Topic: Codeblocks * 2  (Read 3044 times)

Offline cb@germany

  • Multiple posting newcomer
  • *
  • Posts: 10
Codeblocks * 2
« on: August 19, 2015, 07:40:20 pm »
Hi!

I have a problem, maybe someone here can help?

I want to run codeblocks with different environments. But it will always use the same settings.
Now I wonder, if it is possible two run two installations fully separated.

The second point is about the same as point 1. If codeblocks * 2 is there another IDE thelike
codeblocks, which could be used on the same system??

« Last Edit: August 19, 2015, 07:47:48 pm by cb@germany »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Codeblocks * 2
« Reply #1 on: August 19, 2015, 07:45:49 pm »
Use there is an option to pass a profile on the command that starts CB.

Edit: Link to wiki http://wiki.codeblocks.org/index.php?title=Code::Blocks_command_line_arguments

If you call codeblocks with --help it will give all the options.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline cb@germany

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Codeblocks * 2
« Reply #2 on: August 19, 2015, 08:05:41 pm »
Mhhhhh.

Then I would use the --user-data-dir option???

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Codeblocks * 2
« Reply #3 on: August 19, 2015, 09:12:40 pm »
Mhhhhh.

Then I would use the --user-data-dir option???

I forget what that option does; it might be better than the option I use of "--personality".
Edit: It changes the folder to hold the settings; it might be better or worse depending on what you are trying to do.

Code
--personality=<str>

Tim S.
« Last Edit: August 19, 2015, 09:14:18 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline cb@germany

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Codeblocks * 2
« Reply #4 on: August 26, 2015, 10:02:44 pm »
Actually I am trying to develop using two incompatible compiler and/or linker settings.

Both "environments" should know nothing of each other and even if one is changed
erroneously, the other should not be inflicted.

In best case, one profile would develop x and the other y.

If there are some guys into this, I have quite some problems with code completion.
With c++ it works quite fine, with other stuff more or less not.

 

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Codeblocks * 2
« Reply #5 on: August 27, 2015, 07:32:30 am »
Both "environments" should know nothing of each other and even if one is changed
erroneously, the other should not be inflicted.
Well the personalities (as suggested) would work just fine in that case.

Another solution is to make a copy of the compiler you are using and change the settings in the original and copy as needed. Then, the developers would just need to pick the right compiler. But these settings were independent. (The project file would point to different compilers / settings though).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ