Re: g++ 4.0.2 linking problem
Re: g++ 4.0.2 linking problem
- Subject: Re: g++ 4.0.2 linking problem
- From: "B.J. Buchalter" <email@hidden>
- Date: Thu, 21 Dec 2006 20:49:46 -0500
- Thread-topic: g++ 4.0.2 linking problem
On 12/21/06 8:36 PM, "Edward K. Chew" <email@hidden> wrote:
> There must be a simple explanation for this, but I am sadly too sleep-
> deprived to see it. Here's the code:
>
>
> struct Foo
> {
> static const int kMaxBar = 100;
> int bar;
> int bestBar() const;
> };
I think you need a
static const int Foo::kMaxBar = 100;
outside the struct/class.
BR,
B.J. Buchalter
Metric Halo
5 Donovan Drive
Hopewell Junction, NY 12533 USA
tel +1 845 223-6112
fax +1 603 250-2451
_______________________________________________
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