Author Topic: Problem Compiling codeblocks  (Read 5301 times)

eshmun

  • Guest
Problem Compiling codeblocks
« on: October 03, 2007, 05:07:22 am »
hi;
I'm have a problem compiling with codeblock, when I compile a project, codeblock return to me 0 error and 0 warnings, when I try to execute the project it return to me this:

Checking for existence: /home/leonardo/Projects/as/as
Executing: xterm -T 'as' -e 'LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH /usr/bin/cb_console_runner "/home/leonardo/Projects/as/as" ' (in /home/leonardo/Projects/as/.)
Process terminated with status 255 (0 minutes, 0 seconds)

and I do not know what is the problem. Any help it woul be helpfull.

Thanks

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Problem Compiling codeblocks
« Reply #1 on: October 03, 2007, 05:49:19 am »
I am a windows person, so don't know the best answer to this question.
But, some distro have issues with running the program under Code::Blocks; what Linux distro are you using?

Can you run the program from the command line / shell prompt?

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

eshmun

  • Guest
Re: Problem Compiling codeblocks
« Reply #2 on: October 03, 2007, 06:00:01 am »
I'm using Debian 4 etch, and yes I can run the program from de command line

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Problem Compiling codeblocks
« Reply #3 on: October 03, 2007, 07:00:27 am »
I have no idea what you should do.

I know some people need to replace xterm with some other terminal program, but I have no idea if you should or what you should use instead.

I known some people need to adjust the value of LD_LIBRARY_PATH, but no idea where they adjust it.

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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Problem Compiling codeblocks
« Reply #4 on: October 03, 2007, 09:11:59 am »
Quote
Process terminated with status 255 (0 minutes, 0 seconds)

It looks like you have no xterm installed.

Try
Code
sudo apt-get install xterm
or
Code
apt-get install xterm
as root, this should fix the problem.

eshmun

  • Guest
Re: Problem Compiling codeblocks
« Reply #5 on: October 03, 2007, 02:46:56 pm »
problem resolved, I intalled xterm and the project run ok, thanks for help me.