using namespace in xcode and dev-c++
using namespace in xcode and dev-c++
- Subject: using namespace in xcode and dev-c++
- From: Jeffery Shipman <email@hidden>
- Date: Thu, 30 Mar 2006 10:23:04 -0500
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;
In the associated header is the following
#include <cstdlib>
#include <iostream>...
namspace globalstuff
{
#include "node.h"
#include "node.cpp" ..
}
This avoids duplication of headers and libraries. This works fine in
Dev-C++ but produces errors in xcode (The .cpp file does not see it's
associated .h file). My readings in my class textbooks suggests
this should work. Does anyone know why it does not work in xcode.
Thanks
Jeffery Shipman
email@hidden
_______________________________________________
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