Thread: C++ compiler (terminal)
04-13-2008, 08:27 PM #1
C++ compiler (terminal)
- Member Since
- Apr 13, 2008
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
04-14-2008, 02:15 PM #2
in terminal I normally issue something like
g++ -v -Wall program.cpp -o OutPutFileName
a quick man g++ will give you all the optionsmike
This machine kills fascists
Got # ? phear the command line!
04-21-2008, 06:03 PM #3
- Member Since
- Mar 03, 2008
- MacBook 2.2GHz 4GB RAM Black
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By trooper83 in forum OS X - Development and DarwinReplies: 3Last Post: 05-18-2009, 12:38 PM
By nyzwerewolf in forum OS X - Development and DarwinReplies: 4Last Post: 09-25-2008, 11:43 PM
By A.I. BOT in forum OS X - Development and DarwinReplies: 2Last Post: 09-19-2005, 12:00 PM
By A.I. BOT in forum OS X - Operating SystemReplies: 0Last Post: 09-18-2005, 06:24 PM
By Big Beard in forum OS X - Development and DarwinReplies: 1Last Post: 02-18-2004, 02:17 AM