Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to include a .cp file?



I'm trying to build a PowerPlant project to Xcode and I could swear that I got it building once already, but for some reason, it won't work anymore (might be some change in Xcode 1.1 that causes this). The problem I'm facing is that UPrinting.cp includes "USessionPrinting.cp", but Xcode fails to find this file.
I assume this is because Xcode caches the header files in it's headermap, but it won't cache a .cp file, so it doesn't find the .cp file...
Unfortunately, the "File Type" selection seems to have no influence on that behavior: I tried to change the File Type from sourcefile.cpp.cpp to sourcefile.cpp.h, but that didn't fix the problem. (USessionPrinting.cp is added to the project, but it's not in the target, since it's implicitely compiled by UPrinting.cp).


I tried with a small sample project and it's the same there:

----- file main.cpp:

#include "foo.cp"
int main()
{
	foo();
}


------ file foo.cp:

static void foo() {}


Again, foo.cp is part of the project, but not compiled for the target and Xcode claims it can't find "foo.cp"...


Is there any way to make Xcode recognize/find USessionPrinting.cp (or any other .cp file that's being #included from another .cp file)?

</jum>
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.