User forums > Using Code::Blocks
cannot set default compiler
cbnewbie:
This is interesting. I am using Mageia Linux and gcc is installed in /usr (see mageia-gcc.txt). But there are some links between /bin, /usr/bin and /etc/alternatives:
$ cd /etc/alternatives
$ ls -l gcc
lrwxrwxrwx 1 root root 18 Mär 29 21:09 gcc -> /usr/bin/gcc-5.4.0*
$ cd /usr/bin/
$ ls -l gcc
lrwxrwxrwx 1 root root 21 Mär 29 21:09 gcc -> /etc/alternatives/gcc*
$ cd /bin
$ ls -l gcc
lrwxrwxrwx 1 root root 21 Mär 29 21:09 gcc -> /etc/alternatives/gcc*
$
cbnewbie:
I attached two files with the output of strace.
What I did: I started cb, selected the detected compiler as default at start up. When cb was running I tried to auto-detect the compiler because the toolchain path was still empty. After setting the path manually to /usr I closed cb.
oBFusCATed:
Please - do the following:
1. start cb under strace
2. open settings -> editor
3. change some settings (switch any checkbox)
4. press ok
5. close cb
Then post the log, but first start cb again and check if the settings is saved...
cbnewbie:
This time I did the following:
1. start cb under strace
2. open settings -> editor
3. change some settings (switch any checkbox) -> check "Detect indent style" and "Use TAB character"
4. press ok
5. close cb
6. start cb again -> previously checked options have been saved!
I had to split and compress the strace output file into two parts: cb_strace_03.7z and cb_strace_04.7z
oBFusCATed:
Can you please post a single file? Use a paste bin like service if the forum doesn't allow big attachments!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version