• 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
how to include a .cp file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to include a .cp file?


  • Subject: how to include a .cp file?
  • From: Jens Miltner <email@hidden>
  • Date: Sat, 31 Jan 2004 00:24:16 +0100

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.

  • Follow-Ups:
    • Re: how to include a .cp file?
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: WChar launch problems in 10.2??
  • Next by Date: Re: how to include a .cp file?
  • Previous by thread: Re: WChar launch problems in 10.2??
  • Next by thread: Re: how to include a .cp file?
  • Index(es):
    • Date
    • Thread