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

cb nightly on flash drive

<< < (2/4) > >>

thomas:

--- Quote from: TDragon on September 27, 2006, 09:35:50 pm ---Move your .conf file from the default location to the same directory as codeblocks.exe. C::B looks for a .conf file (default.conf unless you tell it otherwise) in various places before creating a new one in the default place.
--- End quote ---
That is only 95% correct. Code::Blocks will use a configuration file from the same path where the executable is located if none can be found in the normal location, not by default.
This is to allow you to put Code::Blocks onto a CD-ROM or similar medium with a custom configuration, and yet users can have personalised settings on their indidvidual PCs (falling back to whatever the distribution packager deems a good default).

If you want to use the config file on a flash drive regardless of any other settings on the computer, then use a different profile (anything that's different from "default"). This profile will obviously not be found on the PC and the one on the flash drive will be used (and saved to).
In case you already have some settings saved as "default" profile, feel free to simply rename the file, Code::Blocks won't get angry about it.

MortenMacFly:

--- Quote from: thomas on September 28, 2006, 01:06:03 pm ---If you want to use the config file on a flash drive regardless of any other settings on the computer, then use a different profile (anything that's different from "default").

--- End quote ---
I was just about to ask to provide C::B with a command line parameter to set the config file but this is *much* better.  That idea didn't cross my mind.
Morten.

TDragon:

--- Quote from: thomas on September 28, 2006, 01:06:03 pm ---That is only 95% correct. Code::Blocks will use a configuration file from the same path where the executable is located if none can be found in the normal location, not by default.
--- End quote ---
... That's what I said. To rephrase it once more: if you move the .conf file from the default location to the same directory as codeblocks.exe on the removable media, C::B will look for the .conf in the default location and not find it, then find it on the removable media. If C::B can't find the .conf file, it will be created in the default location.

MVP:

--- Quote from: MVP on September 27, 2006, 10:14:05 pm ---Do you know how to use relative file linking for includes, etc? I want to put my wxWidgets folder and MinGW inside of the Code Blocks folder.
--- End quote ---

Im just bringing this back up in case it was missed, instead of using C:/Mingw, I want to have Mingw in the code blocks folder and no matter where i put that folder, code blocks should still be able to find mingw.

thomas:
That doesn't matter much, you can put it where you want.
You will only have to set the compiler path correctly after that (which will be saved with the settings).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version