• 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
XCode Newbie Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCode Newbie Question


  • Subject: XCode Newbie Question
  • From: Gil Dawson <email@hidden>
  • Date: Tue, 9 Dec 2008 16:37:40 -0800

I am rather new to XCode, still reading the User Guide.  I'm stumped by one question that looks really dumb; perhaps you can help.

When I compile (command-K) my test program (test.c), I get an error (no such file or directory) on an #include statement in a C module, but the target file (testadd.c) is right there in the XCode folder and in the same Finder directory as all the other files.  I have tried moving the target file up and down in the XCode folder and deleting the target file and recreating it, no help.  I even tried putting the full path name into the <> parameter of the #include, no help.

What other kinds of things might can cause this error?

--Gil

Background:

A reduced project that demonstrates this error contains 5 source files, all physically stored in the same Finder folder: 

In XCode's Scripts folder,

1) An Applescript stub

In XCode's "Other Sources" folder,

2) main.m - I'm not sure what to do with this

3) test.h - with the following source:
//dummy test.h for testing
typedef int bit;
bit TMR1IF = 0;

4) test.c - with the following source:
//Dummy test.c to demo #include problem
#include <test.h>  //<-- this #include seems to work (TMR1IF seems defined)
int main(void) {
if (TMR1IF); //stub
return 1;
}
#include <testadd.c>   //<-- this is the line that gets the error,
// * testadd.c: No such file or directory *
 
5) testadd.c - with the following source:
void isp(void) {
if (TMR1IF); //stub
}
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: XCode Newbie Question
      • From: Philip Aker <email@hidden>
References: 
 >applescript shell script SCP? (From: "Mr. Dan Pouliot" <email@hidden>)
 >Re: applescript shell script SCP? (From: "Mark J. Reed" <email@hidden>)
 >Re: applescript shell script SCP? (From: "Mark J. Reed" <email@hidden>)
 >Re: applescript shell script SCP? (From: Paul Scott <email@hidden>)
 >Re: applescript shell script SCP? (From: "Mark J. Reed" <email@hidden>)
 >Re: applescript shell script SCP? (From: "Edward K. Chew" <email@hidden>)

  • Prev by Date: Re: applescript shell script SCP?
  • Next by Date: Re: Tell Blocks Considered Harmful (was Re: open for access)
  • Previous by thread: Re: applescript shell script SCP?
  • Next by thread: Re: XCode Newbie Question
  • Index(es):
    • Date
    • Thread