User forums > Using Code::Blocks
cannot set default compiler
cbnewbie:
If I click a second time the following happens:
Reset this compiler's settings to the defaults?
buttons: OK | Cancel
Cancel -> nothing happens
OK -> The same error (assert) appears again.
buttons: Stop | Continue
Stop -> cb crashes
Continue -> Reset this compiler's settings to the defaults? Are you REALLY sure?
buttons: OK | Cancel
Cancel -> nothing happens
OK -> Auto-detected installation path of of "GNU GCC compiler ""
buttons: OK
oBFusCATed:
Is the path correct after you click the final OK button?
cbnewbie:
No. The path is still empty. Maybe there are two problems:
GNU gcc is installed in /etc/alternatives/bin with links in /bin and /usr/bin. Does cb have difficulties to extract the path from the link?
The second problem is that default.conf is not correctly updated or not read properly. The changes I add will be ignored the next time cb starts.
BlueHazzard:
--- Quote from: cbnewbie on April 10, 2017, 09:23:23 pm ---GNU gcc is installed in /etc/alternatives/bin with links in /bin and /usr/bin. Does cb have difficulties to extract the path from the link?
--- End quote ---
does this "alternatives" has some special, non ascii characters?
oBFusCATed:
Do you have a compiler (gcc, g++) in /usr/bin?
Can you run codeblocks under strace to see if default.conf is written and if there is any error for the open/read/write/close calls codeblocks is doing?
If you don't know how to read the strace log, just save it in a file and paste bin it somewhere, so we can take a look.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version