• 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
Re: XCode see the files, compiling doesn't
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode see the files, compiling doesn't


  • Subject: Re: XCode see the files, compiling doesn't
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Fri, 25 Mar 2011 15:42:55 -0700

1) Change '#include' to '#import'.
2) Change 'file.inc' to 'file.h' --- I'm assuming you wish to include header files.
3) You may have to set the header-file link path in the project's environment (see attached).
    --- add that path, preferably a relative path based on the locale of the project base itself.


I hope that helps.
Ric.

On Mar 25, 2011, at 2:38 PM, Todd wrote:

I am cleaning up code from another programmer who is long gone.

He created a bunch of "shared" files that have a .inc extension.

In XCode, these files exist, I can reveal in Finder, etc. 

When I do an Include "file.inc" they cannot be found when compiling.

In XCode I set these file types to be sourcecode.cpp

the .inc files are in the target for the app.

These .inc files are template declarations like:

#include "incheader.h"


template <class listClass,class itemClass>
void FxStreamingObjectList<listClass,itemClass>::StreamOut(FxStream *stream)
{
if (listClass::size())
{
stream->PutSeparator();
stream->PutString(mFieldName.c_str());
stream->PutSeparator();
stream->PutBeginList();
stream->Indent(+1);
for (listClass::iterator iter=listClass::begin(); iter != listClass::end(); iter++)
{
stream->PutSeparator();
stream->PutString( (*iter)->GetClassID() );
// if (iter != listClass::begin())
// {
// stream->PutListSeparator();
// }
(*iter)->StreamOut(stream);
}
stream->Indent(-1);
stream->PutSeparator();
stream->PutEndList();
stream->PutSeparator();
}
}

What is going wrong here? Why can these .inc files not be seen?

-J
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
References: 
 >XCode see the files, compiling doesn't (From: Todd <email@hidden>)

  • Prev by Date: Re: Shark not working with XCode 3.2.6?
  • Next by Date: Re: How to get warnings for missing methods in older SDKs
  • Previous by thread: XCode see the files, compiling doesn't
  • Next by thread: Re: XCode see the files, compiling doesn't
  • Index(es):
    • Date
    • Thread