Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Help in running Code::Blocks on Mac OSX. Should I use something else?

I'm starting to learn programming and can't seem to get Code::Blocks running on my lap top. Terminal says "Can't execute binary file." I'm trying to build the first "Hello World" C++ program but it would not build or run. Sometimes I get the message that it cannot access folder also.
Here's my code:

#include <iostream>
using namespace std;
int main()
{
cout << "Hello World !" << endl;
}


What C++ software do you recommend to start? Should I use any other than Code::Blocks?

A1181, Mac OS X (10.5.2), Black MacBook

Posted on Dec 3, 2009 2:42 PM

Reply
Question marked as Best reply

Posted on Dec 3, 2009 2:59 PM

Use [XCode|http://developer.apple.com/technology/tools.html].
18 replies

Dec 7, 2009 8:01 AM in response to Tron55555

Apparently 'xed' is pretty funky. If you don't give it a file name, it will read from standard input. If you do give it a file name, and the file name doesn't exist, you must also include the '-c' option to create the file. However, that doesn't work. The file must already exist if you want to edit it in xed. Use 'touch' to create it first.

According to the xed man page:
The options for xed are similar to those for the command-line utiltiies for other text editors


Not only is the spelling poor, it is flat out wrong.

Maybe that could be a project for you. Write a ScriptingBridge application to replace xed. You should be able to best Apple's effort in a couple of hours.

Dec 8, 2009 3:59 AM in response to etresoft

Maybe that could be a project for you. Write a ScriptingBridge application to replace xed. You should be able to best Apple's effort in a couple of hours.


Anyone but me, maybe. For me, try a couple of years. Anyways, thanks a lot for your guys help here. I appreciate, as always, your taking the time to answer my questions. I will be looking into "xed" further. Thanks again!

Help in running Code::Blocks on Mac OSX. Should I use something else?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.