User forums > Help

C::B won't compile anything.

(1/2) > >>

PinkWolfFenrir:
I am running Code::Blocks version 13.12 on Mint 18.3. The compiler I use is gcc
version is either 5.4 or 6.0, for some reason both of them are in usr/lib/gcc/x86_64-linux-gnu

When I run the code (just a simple printf), it doesn't start an .exe, from a users standpoint, it does nothing.

Build log:
gcc -Wall  -c /home/alan/programiranje/bla.c -o /home/alan/programiranje/bla.o
g++  -o /home/alan/programiranje/bla /home/alan/programiranje/bla.o   
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 
Checking for existence: /home/alan/programiranje/bla
Executing: xterm -T '/home/alan/programiranje/bla' -e /usr/bin/cb_console_runner "/home/alan/programiranje/bla" (in /home/alan/programiranje)
Process terminated with status -1 (0 minute(s), 0 second(s))
 

I tried installing gcc again and then restarting c::b, but no joy.
Settings>Compiler>Toolchain executables screenshot is in the attachments.

oBFusCATed:
Do you have xterm installed?
You can change the terminal used in the settings -> environment -> general -> terminal

PinkWolfFenrir:
Terminal to launch console programs: xterm -T $TITLE -e


Where do I check to see if I have xterm installed?

stahta01:

--- Quote from: PinkWolfFenrir on December 21, 2017, 06:06:15 pm ---Where do I check to see if I have xterm installed?

--- End quote ---

Inside the Linux package manger.

Tim S.

PinkWolfFenrir:
I installed xterm, and now it works! Thanks both of you!  But is there any way to use c::b without xterm, only using the standard Linux terminal. I'm not that familiar with xterm, but from what I understand it's just a terminal isn't it?

Navigation

[0] Message Index

[#] Next page

Go to full version