Re: just C++ in xcode
Re: just C++ in xcode
- Subject: Re: just C++ in xcode
- From: Lawrence Gold <email@hidden>
- Date: Thu, 29 Sep 2005 19:06:13 -0600
On Sep 29, 2005, at 5:54 PM, Joe Kurtz wrote:
Okay everyone, we're gettin' plenty of mileage from
this. But there's just one thing I don't yet
understand. I was pretty simplistic in my example. My
code actually looks more like one of Andreas'
examples:
in foo1.h:
#include <iostream>
namespace n { int x; };
void func();
You need to declare the variable extern in the header file and then
define it in ONE .c file. Remember that #include literally pastes the
text of the header file into the file including it, so every file
that includes foo1.h is defining a separate x.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden