User forums > Using Code::Blocks

Where are the settings saved?

<< < (2/3) > >>

thomas:
Sharing these settings does not really make sense, as the path to the compiler will be incompatible, and it is part of the settings. This really cannot work (even if you make it "work").

eddyq:
The settings I need are unique to the project, like include folders, defines, compiler options, etc.

stahta01:

--- Quote from: eddyq on April 01, 2013, 02:38:21 pm ---The settings I need are unique to the project, like include folders, defines, compiler options, etc.

--- End quote ---

I think looking at global variables might useful for you.

http://wiki.codeblocks.org/index.php?title=Global_compiler_variables

I have no idea where Global Variables are saved; but, it might be easier to import/export them using a pre-build script.
I have no direct knowledge that this would be easier that doing import/export of the Compiler Settings. But, I do think it would be safer.

Tim S.

Jenna:

--- Quote from: eddyq on April 01, 2013, 02:38:21 pm ---The settings I need are unique to the project, like include folders, defines, compiler options, etc.

--- End quote ---

The per project settings are saved in the appropriate projectfile (*.cbp).

eddyq:
>>The per project settings are saved in the appropriate projectfile (*.cbp).

Not fully, for example Settings/Compiler/#defines do not seem to be saved there. I changed it on Linux, closed C::B on Linux, opened it on Windows and the project was not changed. Also Windows did not show a new date on the project.

Then to be sure I'm using the same project on both, I added a function to the Linux side, closed the project and it showed up on the Windows side.

(BTW, how do you quote a post?)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version