• 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
#include’ing .cpp files in different folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#include’ing .cpp files in different folders


  • Subject: #include’ing .cpp files in different folders
  • From: jean-françois gauthier <email@hidden>
  • Date: Wed, 11 Feb 2004 13:51:56 -0500

(im new to xcode and fairly new to gcc)

im porting code from cwpro over to xcode. the same code compiles, links and runs unmodified using cwpro (various versions, including the latest) and msdev 6. implementation and header files are grouped in folders, one for each component. im using class templates with explicit instantiation. every component that instantiates templates has a .cpp file that contains the explicit instantiations.

my problem: gcc stumbles on #includes that refer to .cpp files that live outside the folder containing the compiled .cpp file.

more simply: i need #include "a.cpp" to work just like #include "a.h" does, which is what happens in cwpro and msdev (assuming both a.cpp and a.h live in a known folder somewhere).

of course, if implicit instantiation is doable, i wouldnt mind being pointed to relevant documentation.

thanks,

jean-frangois
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Mac OS X Deployment Target setting
  • Next by Date: Re: Mac OS X Deployment Target setting
  • Previous by thread: Re: Linking to a bundle?
  • Next by thread: strange looking ambiguity with type cast
  • Index(es):
    • Date
    • Thread