• 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
using namespace in xcode and dev-c++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: using namespace in xcode and dev-c++
      • From: Jeff DuMonthier <email@hidden>
    • Re: using namespace in xcode and dev-c++
      • From: Sam Miller <email@hidden>
    • Re: using namespace in xcode and dev-c++
      • From: David Dunham <email@hidden>
  • Prev by Date: Re: Attaching to the debugger programatically
  • Next by Date: Re: Attaching to the debugger programatically
  • Previous by thread: Re: Attaching to the debugger programatically
  • Next by thread: Re: using namespace in xcode and dev-c++
  • Index(es):
    • Date
    • Thread