Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using namespace in xcode and dev-c++




On 30 Mar 2006, at 07:23, Jeffery Shipman wrote:

I am trying to hammer out a couple differences between compilers. I use xcode and dev-c++. The use of namespace is different between the two compilers.

In Dev-C++ you may put the following in a .h or .cpp file

#include "globalstuff.h"
using namespace globalstuff.h;

I've compiled the same namespace-using code with Visual C++, CodeWarrior, and gcc, so you must be doing something wrong. It might be a mail-based typo, but namespaces don't usually have ".h" in their name...


David Dunham   Macintosh Game Developer   GameHouse Studios
+1 206 926 5722                http://www.gamehouse.com
    "They said it couldn't be done but sometimes it doesn't
     work out that way." -- Casey Stengel


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >using namespace in xcode and dev-c++ (From: Jeffery Shipman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.