My New Development Environment - OSX Tiger 10.4.2

Rodney_za

Registered
Hi

I am a windows programmer who has been asked to voyage into the unknown.. the mac...

So I have a mini Mac as my Dev machine and have just downloaded XCode 2.2.
All I want to do at the moment is compile a simple "Hello World" application..

so I have this
Code:
//------------------
#include <stdio.h>

int main()
{
  printf("hello world");
  return 0;
}
//----------------

Firstly when I open this cpp file in the Xcode editor...everything under the Build Menu is disabled

When I try to compile using gcc... I get the following error

/usr/bin/Id: Undefined symbols:
___gxx_personality_v0
collect2: Id returned 1 exit status


It seems like I'm missing a library because the __gxx... error looks like a linking error...but I'm not sure.

Can anyone help me please.


Also If anyone has built a plugin for Firefox on the Mac, can you tell me wot mozilla packages I would need... like is there a Mac version of Mozilla-Devel which I used to build on Linux.
 
As with Visual Studio, you need to create a new project. So do that. The project type should be either C++ tool, or Standard Tool.

Can't help you with the rest, sorry.
 
Back
Top