• 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
Bizarre stdarg error with Xcode 3.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bizarre stdarg error with Xcode 3.0


  • Subject: Bizarre stdarg error with Xcode 3.0
  • From: Larry Campbell <email@hidden>
  • Date: Wed, 31 Oct 2007 11:49:41 -0400

Just installed Leopard and Xcode 3.0, and an Objective-C file that used to compile just find now fails with:

	error: incompatible type for argument 1 of '__builtin_va_end'

Bizarrely, renaming the file from .m to .mm causes the compile to succeed. Snipping the offending code out, I was able to reduce it to this example:


#include <Foundation/Foundation.h> #include <stdarg.h>

void foo(id obj, ...)
{
  va_list ap;
  va_start (ap, obj);
  NS_DURING
  NS_HANDLER
  NS_ENDHANDLER
  va_end(ap);
}


If you compile this as a .m file you get the error. If you compile it as a .mm file you don't.


Is this a known "feature"?

- lc

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Prev by Date: Re: Any way to get tiny "clear console" button back?
  • Next by Date: Re: "different visibility" warning?
  • Previous by thread: Re: Xcode 3.0: gcc 3.3 compiles fail if distributed builds (distcc) are turned on
  • Next by thread: Instruments can't find simple leaks?
  • Index(es):
    • Date
    • Thread