Re: using namespace in xcode and dev-c++
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