• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: using namespace in xcode and dev-c++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: using namespace in xcode and dev-c++
  • From: Sam Miller <email@hidden>
  • Date: Thu, 30 Mar 2006 16:12:59 -0600


On Mar 30, 2006, at 9:23 AM, Jeffery Shipman wrote:

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

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

In the associated header is the following

#include <cstdlib>
#include <iostream>...

namspace globalstuff
{
#include "node.h"
#include "node.cpp" ..
}

"globalstuff.h" is not a qualified namespace id. Consult the C++ standard, I think section 2.10 is where they discuss legal identifiers. If that practice worked in dev-c++, it is a hack and probably not portable.


Sam Miller
Graduate Research Assistant
Department of Electrical and Computer Engineering
Iowa State University
312 Wilhelm Hall
Ames Laboratory (515) 294-2148
Ames, IA - 50011 email@hidden
http://www.scl.ameslab.gov/~samm/

_______________________________________________
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


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

  • Prev by Date: Re: setting a larger stack size
  • Next by Date: Re: setting a larger stack size
  • Previous by thread: Re: using namespace in xcode and dev-c++
  • Next by thread: Re: using namespace in xcode and dev-c++
  • Index(es):
    • Date
    • Thread