User forums > Using Code::Blocks
How can I use codeblocks like a normal user in linux? (Can't compile with gcc)
yczo:
Hello.
I can't use codeblocks without being root (well realy I can't compile with gcc). I know that this is dangerous. Would be someone so kind to tell me what must I do to use it like a normal user to start to learn c/c++?
Thanks in advance
Jenna:
Keep the sources in a folder where you have read and write access (normally below your home-folder) and all should work well.
yczo:
hello jens.
I did it, but i can't compile. codeblocks say : gcc-config: error: could not run/locate 'gcc'
regards
const451:
Open the terminal, navigate to the folder where you source code is, and try to compile from the command line, tell us what happens.
g++ [source files]
yczo:
Hi const451, that was a good idea
$ gcc -o counter.c
gcc-config: error: could not run/locate 'gcc'
Is not a problem of codeblocks.
$ ls -l //I'm enigma, I'm allowed
-rwxr-xr-x 1 enigma enigma 733 dic 22 2011 counter.c
And on father directory
drwxr-xr-x 5 enigma enigma 4096 sep 7 22:11 example
regards
Navigation
[0] Message Index
[#] Next page
Go to full version