New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

C++ compiler (terminal)


Post Reply New Thread Subscribe

 
Thread Tools
jasonnx19

 
Member Since: Apr 13, 2008
Posts: 1
jasonnx19 is on a distinguished road

jasonnx19 is offline
hey im new to mac, just got it yesterday. but ive been learning c++ on windows and i used visual c++. so for my mac i downloaded xcode but it seemed really complex for my menial programs and i didnt like how you couldnt compile a file-only projects.

so i downloaded textwrangler and i wrote a c++ program (copied from book) and i dont know how to compile it in terminal.

on windows i use the code: cl/EHsc filename.cpp but obviously this is not windows

so if anyone can tell me the coding to compile and execute a c++ program, please do so. thank you very much in advance
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
in terminal I normally issue something like

g++ -v -Wall program.cpp -o OutPutFileName


a quick man g++ will give you all the options

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
feng.gu

 
Member Since: Mar 03, 2008
Posts: 7
feng.gu is on a distinguished road
Mac Specs: MacBook 2.2GHz 4GB RAM Black

feng.gu is offline
Hi, you can create a new project through command line utility->C++ Tool, then if you want monitor the output you can open Console in menu->run->Console. This solution is just for C++ programs using standard library only.
QUOTE Thanks

Post Reply New Thread Subscribe


« what folders does macports create? | Application for UML and flow chart »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
C++ in terminal frike OS X - Development and Darwin 2 04-04-2008 10:52 AM
Terminal issue sarjas OS X - Apps and Games 1 01-02-2008 10:30 PM
Terminal problems please help CliveO OS X - Operating System 6 03-20-2007 10:04 AM
Terminal Problem WROC OS X - Apps and Games 5 01-09-2007 04:01 PM
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 10:52 PM

All times are GMT -4. The time now is 10:06 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?