Hi,
I have developed a VERY customized method to compile/debug/build R language packages that contain C code or Fortran code. The setup time to create the *VERY customized method* may involve between 30 minutes and two(2) hours of time to setup.
An environment variable helps me find the compiler (that has a dynamically generated location).
Specifically, the compiler location is set by using an environment variable. Sometimes, when I am transitioning between tasks, I sometimes I will change that environment variable.
Sometimes, I do not set an environment variable correctly.
Next, just at when I am starting Code::Blocks, either, (1) the default.conf file itself will not be found or (2) the compiler itself will not be found. I get back this error message:
Environment error
-----------------
"Can't find compiler executable."
Next, I shut down Code::Blocks. I put back an environment variable back to its previous and correct setting, and then I try to start Code::Blocks, I still get the message:
Environment error
-----------------
"Can't find compiler executable."
I also have read . . .
Topic: codeblocks crash on startup
One thing you can try is to delete C::B's default.conf in %APPDATA%\codeblocks
(or better rename the folder so you can recreate your conf if it is not the cause).
C::B will create a configuration from scratch at next start (if it starts).
Topic: codeblocks crash on startup
http://forums.codeblocks.org/index.php/topic,12786.msg86461.html#msg86461
My impression is the default.conf file has already been "written to" and
this "written to" has made my previous settings unobtainable (gone).
The case seems that when code::blocks can not find its compiler on startup, it tries (and is successful) to rewrite the default.conf. While this *feature* is useful to most people (so they can easily recreated their environments),
this feature is not good for me. Next, I would have to spend between 30 minutes and two(2) hours to re-create the setup.
Questions
1.
How do I go about disabling this "Can't find compiler executable." fix-it feature, if possible.
2.
Since this "Can't find compiler executable." problem often happens to me,
does anyone have any good backup and recovery strategies involving the default.conf file?
Thank you very much,
Andre
Andre Mikulec