News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Cannot build/run code

Started by spiccato, September 05, 2018, 11:03:48 PM

Previous topic - Next topic

spiccato

Just got Code::Blocks, running it on linux mint. Every time I try to run the code it just gives me the message "It seems that this file has not been built yet. Do you want to build it now?"  and when I click yes it just repeats it.

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

spiccato


stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

spiccato

Nothing to be done (all items are up-to-date).

Checking for existence: /home/usr/Untitled Folder/Untitled1

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

Also, spaces in the path can sometimes cause problems.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

spiccato

Build log:

gcc   -c "/home/usr/Untitled Folder/Untitled1.c" -o "/home/usr/Untitled Folder/Untitled1.o"
g++  -o "/home/usr/Untitled Folder/Untitled1" "/home/usr/Untitled Folder/Untitled1.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/usr/Untitled Folder/Untitled1
Executing: xterm -T '/home/usr/Untitled Folder/Untitled1' -e /usr/bin/cb_console_runner "/home/usr/Untitled Folder/Untitled1" (in /home/usr/Untitled Folder)
Process terminated with status -1 (0 minute(s), 2 second(s))



This is when I run the code.

BlueHazzard

do you have xterm installed?

if not you can change the default terminal in Settings->environment->Shell to run commands in...

Or you install xterm...

spiccato

That was the problem, thank you so much!