User forums > Help
How to make Code:Blocks remember paths
stamasd:
I have the following problem. maybe the solution is obvious, but I can't figure it out, and didn't find anything in the wiki or forums related to it. I installed C:B 8.02 with the VC++ 2003 toolkit, the platform SDK from Win XP SP2 and DirectX SDK 9.0.
The problem is that C:B does remember the include and lib paths for the VC++ toolkit, but doesn't remember the include and lib paths for the PSDK and DXSDK. Each time I start C:B up I have to go into settings>compiler and debugger>search directories and manually add the include paths under compiler, and the lib paths under linker. Then I can use the system to compile my stuff. But if I close C:B and start it again, I have again to go and set the paths because it forgets them. It's fairly annoying. I have tried many things, including using "save all" but it still doesn't work. There isn't an option to "save settings" that I could find anywhere.
Jenna:
The settings are normallstored automatically, if C::B is closed.
Make sure, that you close C::B before you shut down your system, because in this case the changed settings can not be saved.
stamasd:
Yes, it happens every time I close C::B and then open it back up. Every path I enter apart from the include and lib directories of the compiler disappear. That includes all the PSDK, directX SDK, etc, everything that I enter manually in the search directories tab.
MortenMacFly:
--- Quote from: stamasd on November 18, 2009, 09:05:12 pm ---Yes, it happens every time I close C::B and then open it back up. Every path I enter apart from the include and lib directories of the compiler disappear. That includes all the PSDK, directX SDK, etc, everything that I enter manually in the search directories tab.
--- End quote ---
First of all: The path's you should better setup at project options level, not compiler level. Otherwise they apply to every project you are working on and are probably not compatible / needed and thus lead to conflicts sooner or later. However, please post a detailed step-by-step instruction what *exactly* you are entering in these options so we can try to reproduce. But there is really not logical reason why this should happen. Alternatively you can try a nightly to see if it applies there, too. Probably this "bug" has already been fixed. However - I am not aware of any modification in that direction. In addition no other user complained about such.
stamasd:
I am aware this is a weird behavior. I have uninstalled C::B and reinstalled from a fresh download of version 8.02 from sourceforge, then repeated with a download from berlios, and I still see the same behavior.
I *do* want the paths to be set in the general section because I will definitely be using the same PSDK and DirectX SDK for all my projects. No reason to keep multiple SDK versions around.
What I am doing, exactly is:
1. Download C::B
2. Start the C::B install
3. Start C::B after the install is finished
4. Set the default toolkit (in my case, the VC++ toolkit 2003, which is installed at c:\Program Files\Microsoft Visual C++ Toolkit 2003)
5. Settings > compiler and debugger > search directories; under compiler add below the VC++ toolkit path: C:\src\Microsoft Platform SDK for Windows XP SP2\Include and c:\src\directx9\Include
then under Linker I add C:\src\Microsoft Platform SDK for Windows XP SP2\Lib and c:\src\directx9\Lib
(c:\src\Microsoft Platform SDK for Windows XP SP2 and c:\src\directx9 are the locations of the SDKs)
6. Close C::B
7. Open C::B again
8. The newly added paths are missing.
Navigation
[0] Message Index
[#] Next page
Go to full version