User forums > Using Code::Blocks
Other resource compiler options's conf is not saved
zyd:
Hi:
I found the "Other resource compiler options" will aways not saved in default.conf file in win7 64bit.
"Setting -> Compiler -> GNU GCC Compiler -> Compiler settings -> Other resource compiler options", I fill in some options such as "-F pe-x86-64", and click OK to save options, and restart CB, reopen the options dialog, "-F pe-x86-64" is not there, option editor is nothing.
I tried 15.12-RC1, 16.01, and the latest nightly build version 20160621_rev10868, all have this problem.
BlueHazzard:
I can confirm this on trunk windows 7
i am not very familiar with the code about the compiler, but i think in void Compiler::LoadSettings(const wxString& baseKey) in sdk/compiler.cpp is missing the loading function for the resource compiler options:
--- Code: --- SetCompilerOptions (GetArrayFromString(cfg->Read(tmp + _T("/compiler_options"), wxEmptyString)));
SetLinkerOptions (GetArrayFromString(cfg->Read(tmp + _T("/linker_options"), wxEmptyString)));
SetIncludeDirs (GetArrayFromString(cfg->Read(tmp + _T("/include_dirs"), wxEmptyString)));
SetResourceIncludeDirs(GetArrayFromString(cfg->Read(tmp + _T("/res_include_dirs"), wxEmptyString)));
SetLibDirs (GetArrayFromString(cfg->Read(tmp + _T("/library_dirs"), wxEmptyString)));
SetLinkLibs (GetArrayFromString(cfg->Read(tmp + _T("/libraries"), wxEmptyString)));
SetCommandsBeforeBuild(GetArrayFromString(cfg->Read(tmp + _T("/commands_before"), wxEmptyString)));
SetCommandsAfterBuild (GetArrayFromString(cfg->Read(tmp + _T("/commands_after"), wxEmptyString)));
--- End code ---
the include dirs are set, but not the options...
also the save code is not present ???
greetings
BlueHazzard:
Here is a patch what should fix this
oBFusCATed:
I've already fixed it. In trunk.
zyd:
tks, I'll try it with the latest nightly build. ;)
Navigation
[0] Message Index
[#] Next page
Go to full version