image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old April 21st, 2008, 10:40 AM
Registered User
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
danuradityo is on a distinguished road
C++ compiler (xcode 3.0) - help wanted!

Hi, I've been learning C++ by using microsoft visual studios for few months now, but since I'm using a mac (well I'm a newbie), I couldn't find any program that can compile the C++ in Mac.

Well now I'm using the xcode 3.0 for now, but I can't build and execute the file, like the one you can execute in windows computer. Any helps please?

Or maybe you can propose alternative softwares?

Thanks for your help.
Reply With Quote
  #2  
Old April 21st, 2008, 11:46 AM
Registered User
 
Join Date: May 2005
Posts: 1,339
Thanks: 0
Thanked 1 Time in 1 Post
barhar is on a distinguished road
'... but I can't build and execute the file ...' - provide the code (you currently have working in 'Microsoft Visual Studio').

Last edited by barhar; April 22nd, 2008 at 11:09 AM.
Reply With Quote
  #3  
Old April 21st, 2008, 12:37 PM
Registered User
 
Join Date: Jun 2002
Location: USA
Posts: 2,509
Thanks: 1
Thanked 3 Times in 3 Posts
MisterMe will become famous soon enough
Quote:
Originally Posted by danuradityo View Post
Hi, I've been learning C++ by using microsoft visual studios for few months now, but since I'm using a mac (well I'm a newbie), ...
Well, if your Visual Studio C++ code makes calls to Windows APIs, then there is no way that it can be compiled using Xcode. MacOS X has a different set of APIs. The only programs that can be compiled on both platforms are those that make no calls to OS-specific routines. Such programs would run from the Terminal, accept data from the keyboard, and output to the Terminal window.
Reply With Quote
  #4  
Old April 22nd, 2008, 10:23 AM
Registered User
 
Join Date: Mar 2005
Posts: 197
Thanks: 0
Thanked 1 Time in 1 Post
artov is on a distinguished road
If you need to program using C++, I cannot help. But, if you like to program using C family language both in Windows and OS X, you might like to check Java or C#. For C# you need to install Mono http://www.mono-project.com/Main_Page.
Reply With Quote
  #5  
Old April 22nd, 2008, 01:45 PM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,489
Thanks: 0
Thanked 1 Time in 1 Post
Viro will become famous soon enoughViro will become famous soon enough
Quote:
Originally Posted by artov View Post
But, if you like to program using C family language both in Windows and OS X, you might like to check Java or C#.
Or you could just use C.
Reply With Quote
Reply

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 03:30 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.