Author Topic: why i can't just bulid a cpp?  (Read 4568 times)

neversion

  • Guest
why i can't just bulid a cpp?
« on: July 26, 2007, 10:22:28 pm »

everytime when i want to bulid and run it .

it give me:

Compiling: /Users/NS/Desktop/1.cpp
Linking console executable: /Users/NS/Desktop/1
Process terminated with status 0 (0 minutes, 9 seconds)
0 errors, 0 warnings
 
Checking for existence: /Users/NS/Desktop/1
Executing: xterm -T '/Users/NS/Desktop/1' -e "/Users/NS/Desktop/1" (in /Users/NS/Desktop)
Process terminated with status 255 (0 minutes, 0 seconds)

i use mac.

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: why i can't just bulid a cpp?
« Reply #1 on: July 27, 2007, 01:04:55 am »
It looks to me like it's being built, even executed, but it exits immediately. Could you check the existence of /Users/NS/Desktop/1?

It would be great if you provided more information, like revision number and what that program was supposed to do.

neversion

  • Guest
Re: why i can't just bulid a cpp?
« Reply #2 on: July 27, 2007, 07:11:14 am »
thank for your reply  :o

it just a test program:

#include<iostream>
using std::cout;

main()
{
   cout<< "Hello";

   return 0;
}


and i found that i can run the program by doubleclick it  in desktop.
the cb version is CB_20061220_rev3402_macx86.zip.  an i have tried CB_20061220_rev3402_macppc.zip, just
got the same problem.


but why can't i just run it in the code::block?



another question:
my mac is ibook g4 .but code::block is so slow?
« Last Edit: July 27, 2007, 07:15:25 am by neversion »

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: why i can't just bulid a cpp?
« Reply #3 on: July 27, 2007, 05:31:22 pm »
Perhaps you don't have xterm installed, or you didn't check "Pause when execution ends" in the target options, or it's a bug in CB that has been or has not been fixed... I don't really know since I don't have a Mac to check that :(

Now, about CB being slow, it could be because of some plugins (once again, I'm not really sure about it) so you could try disabling a few that you don't use (and also Code Completion) and see if it's still being slow. You can do that thru Plugins -> Manage plugins...

Sorry for not being of greater help :(

Offline Auria

  • Almost regular
  • **
  • Posts: 152
Re: why i can't just bulid a cpp?
« Reply #4 on: July 27, 2007, 07:27:43 pm »
You are using a very old version (it says 2006! that's a version one year old), in these times the mac version was far behind where it is now (even though keep in mind it's still not perfectlty intergrated)

http://developer.berlios.de/project/showfiles.php?group_id=5358

latest one is 4261

neversion

  • Guest
Re: why i can't just bulid a cpp?
« Reply #5 on: July 28, 2007, 01:55:48 pm »
thank you for all of your help.

i will try the newer version and hope the problem will not come up again.  :o :o