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 works fine in Dev-C++ but produces errors in xcode. My reading in my textbooks suggests this should work. Does anyone know why it does not.
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 works fine in Dev-C++ but produces errors in xcode. My reading in my textbooks suggests this should work. Does anyone know why it does not.