#include’ing .cpp files in different folders
#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.