User forums > Using Code::Blocks

Where are the settings saved?

<< < (3/3)

oBFusCATed:

--- Quote from: eddyq on April 03, 2013, 04:47:09 pm ---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.

--- End quote ---
Exact steps to reproduce this, please?


--- Quote from: eddyq on April 03, 2013, 04:47:09 pm ---(BTW, how do you quote a post?)

--- End quote ---
Using the quote link above the post.

eddyq:

--- Quote from: oBFusCATed on April 03, 2013, 05:07:34 pm ---
--- Quote from: eddyq on April 03, 2013, 04:47:09 pm ---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.

--- End quote ---
Exact steps to reproduce this, please?

--- End quote ---

1. Use some method of sharing a folder on both Windows and Linux. I use Virtual Box and shared a folder plus added a symbolic link to Linux. Have the project and source files in that link. (obvious but just to be complete).
2. On Linux, select Settings/Compiler/#defines and add something like TEST
3. Close C::B on Linux
4. Open C::B on Windows and select the same project
5. Select Settings/Compiler/#defines and notice that TEST is not there.

stahta01:

--- Quote from: eddyq on April 03, 2013, 05:16:45 pm ---
--- Quote from: oBFusCATed on April 03, 2013, 05:07:34 pm ---
--- Quote from: eddyq on April 03, 2013, 04:47:09 pm ---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.

--- End quote ---
Exact steps to reproduce this, please?

--- End quote ---

1. Use some method of sharing a folder on both Windows and Linux. I use Virtual Box and shared a folder plus added a symbolic link to Linux. Have the project and source files in that link. (obvious but just to be complete).
2. On Linux, select Settings/Compiler/#defines and add something like TEST
3. Close C::B on Linux
4. Open C::B on Windows and select the same project
5. Select Settings/Compiler/#defines and notice that TEST is not there.

--- End quote ---

They are suggest using the project settings NOT the global compiler setting!

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F

Tim S.

Jenna:

--- Quote from: eddyq on April 03, 2013, 04:47:09 pm --->>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.

--- End quote ---

You should read more exactly !
Per project means per project and not global compiler settings.
There are only a few cases,where it makes sense to touch the global compiler settings, and this will (obviously) be not shareable.

eddyq:
Thanks, I only saw "Compiler" under Settings. Reading the link above, I can now see there are the same settings I want if I right click on Project.

Yup, I should have read more carefully.

Navigation

[0] Message Index

[*] Previous page

Go to full version