site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Nov 2, 2007, at 2:09 PM, mothra wrote: // In Merp.h class Merp { // ... static const double Thing; }; // In Merp.cpp const double Merp::Thing = 1.0; -- Steve Checkoway _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com I get lip from the linker when I do this - it claims that Thing is an undefined symbol. Is there a trick to assigning values to variables within the class declaration with the gcc that ships with Xcode 2.4 etc? Thanks for any help! I believe that the linker is correct here. For once, I don't feel like digging through the standard, but you declare the static variables in the class declaration and then in some source file, you define it. E.g., smime.p7s