• 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
Force C compilation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Force C compilation


  • Subject: Force C compilation
  • From: Doug McLean <email@hidden>
  • Date: Fri, 6 Oct 2006 12:04:22 -0600

Hello. I'm new to XCode and porting a CW project.

This project contains both C and C++ source files, but I needed all to be compiled as C++. Therefore the "Compile Sources As" setting was imported as "C++".

Now I need one file to be compiled as C. (It contains functions in assembly with non-mangled C names.) Is there a way to flag that one file for C compilation, perhaps with "Additional Compiler Flags"? Changing the filetype to C (in Get Info) does not do it.

Thanks for any advice. I think I can unset the global C++ setting and then change the type manually for each file, but would like to find a clearer way.
_______________________________________________
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
  • Follow-Ups:
    • Re: Force C compilation
      • From: Steve Christensen <email@hidden>
  • Prev by Date: Post link build step
  • Next by Date: Re: Force C compilation
  • Previous by thread: Re: Question (again) about precompiled header files
  • Next by thread: Re: Force C compilation
  • Index(es):
    • Date
    • Thread