• 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: Why do I keep getting "no rule to process file ... of type sourcecode.c for architecture"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why do I keep getting "no rule to process file ... of type sourcecode.c for architecture"?


  • Subject: Re: Why do I keep getting "no rule to process file ... of type sourcecode.c for architecture"?
  • From: Nick <email@hidden>
  • Date: Wed, 12 Sep 2012 18:26:01 +0300

Resolved.. Turned out xcode included precompiled header implicitly
with lots of C++ headers in .C files

2012/9/12 Nick <email@hidden>:
> Hello
>  I have  build an xcode project from a set of .c and .cpp files using qmake.
> In project settings I made sure there's "Compile sources as: According
> to file type" is set. I am using LLVM GCC compiler if this matters..
> But everytime I build my project, for all the .c files I am getting a warning:
> Warning: no rule to process file
> '$(PROJECT_DIR)/../Source/CPart/cfile.c' of type sourcecode.c for
> architecture x86_64
>
> And, consequently, linker complains about unresolved dependencies from
> these .c files (functions in .cpp files call functions from these .c
> files).
>
> I am wondering why this is happening?
>
> For every .c file in XCode I have set "C source" as file type on the
> "Identity and Type" XCode panel.
>
> Now, interestingly, if  I set "Default - C Source" as file type for
> each .c file, this "no rule to process file... of type sourcecode.c"
> is gone, instead I get hundreds of errors in boost headers (my project
> uses boost, but, of course, boost headers are included only in .cpp
> files - each of them, by default, is set as "Default - C++ source" on
> "Identity and type").. What is wrong, why can't the project be build?
> Is it a bug in XCode 4.4, or am I doing anything wrong?
>
> Thanks for any help!
 _______________________________________________
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: 
 >Why do I keep getting "no rule to process file ... of type sourcecode.c for architecture"? (From: Nick <email@hidden>)

  • Prev by Date: Xcode 4.2 crash on project open
  • Next by Date: Re: Xcode 4.2 crash on project open
  • Previous by thread: Why do I keep getting "no rule to process file ... of type sourcecode.c for architecture"?
  • Next by thread: Xcode 4.2 crash on project open
  • Index(es):
    • Date
    • Thread