• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++


  • Subject: Re: C++
  • From: Syd Polk <email@hidden>
  • Date: Fri, 13 Aug 2004 15:28:06 -0700

On Aug 13, 2004, at 2:50 PM, digish reshamwala wrote:

Hey..

How do I compile & run simple C++ program in Mac OS X Panther??

The program is:

#include <iostream.h>

int main()
{
cout << "Hello World!" << endl;
return 0;
}

Please reply soon!

The g++ or gcc under terminal doesn't seems to work.


What errors are you getting?

Note that as if a few years ago, you have to either add "using std;" or change the cout invocation to "std::cout << "Hello, World!" << endl;

Syd Polk
Apple Computer
Technology EPM, Mac OS X Development Tools
+1 408 974-0577
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: C++
      • From: Syd Polk <email@hidden>
References: 
 >C++ (From: digish reshamwala <email@hidden>)

  • Prev by Date: Re: Which project files need to be checked in ?
  • Next by Date: Re: Where did the groups drawer go?
  • Previous by thread: C++
  • Next by thread: Re: C++
  • Index(es):
    • Date
    • Thread