• 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: Forcing a single source file to compile with different compiler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forcing a single source file to compile with different compiler


  • Subject: Re: Forcing a single source file to compile with different compiler
  • From: Steve Checkoway <email@hidden>
  • Date: Wed, 16 May 2007 14:31:11 -0700

Rick Altherr wrote:
Or add a preprocessor checks to declare it as extern "C" when using the header under C++:

#ifdef __cplusplus__
extern "C" {
#endif

void foo();

#ifdef __cplusplus__
}
#endif

You mean __cplusplus.


-- Steve Checkoway


_______________________________________________ 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: Forcing a single source file to compile with different compiler
      • From: Rick Altherr <email@hidden>
References: 
 >Forcing a single source file to compile with different compiler (From: Mike <email@hidden>)
 >Re: Forcing a single source file to compile with different compiler (From: Scott Tooker <email@hidden>)
 >Re: Forcing a single source file to compile with different compiler (From: Mike <email@hidden>)
 >Re: Forcing a single source file to compile with different compiler (From: Rick Altherr <email@hidden>)

  • Prev by Date: conflicting preprocessor definition found in two precompiled headers, target uses wrong one
  • Next by Date: Re: Forcing a single source file to compile with different compiler
  • Previous by thread: Re: Forcing a single source file to compile with different compiler
  • Next by thread: Re: Forcing a single source file to compile with different compiler
  • Index(es):
    • Date
    • Thread