• 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: a c++ error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: a c++ error


  • Subject: RE: a c++ error
  • From: "Luca Ciciriello" <email@hidden>
  • Date: Fri, 01 Jun 2007 15:44:23 +0100

Hi.
I'm sorry but I'm not able to reproduce the error you got.
I've created a new project in Xcode 2.4.1 on a PowerPC G4 MacOS X 10.4.9 and all works fine.
Could you please give me more information about your project configuration?
Is a "pure" c++ project or you are using c++ file mixed with c file or .m file?


Bye.

Luca


From: Paul Archibald <email@hidden>
To: email@hidden
Subject: a c++ error
Date: Thu, 31 May 2007 14:34:47 -0700

I am trying to build a test scaffold for a bunch of existing c++ code. I have already used the code a part of a jni library, so I know it works. The problem I am having is creating the test rg.

One of the errors I am getting is pointing at this code:

typedef union	/* Describes an argument to a plug-in function */
{
	double s;		/* Scalar argument	*/
	struct			/* Vector argument	*/
	{
		const double* a;	/* Pointer to first element of vector	*/
		int n;				/* Number of elements in vector			*/
	} v;
}
PLUGIN_FUNC_ARG;


error: two or more data types in declaration of 'PLUGIN_FUNC_ARG'

This is in a header file that does not #include any other headers, so I it seems the error must be in this file. I don't quite understand what the error is, I assume it has to do with the union having a couple of types inside it (don't all unions do that?)

What I find especially odd is that this same file, along with all the rest of the module, are happily compiling in another project! What gives?


 _______________________________________________
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

_________________________________________________________________ The next generation of Hotmail is here! http://www.newhotmail.co.uk

_______________________________________________
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:
    • a c++ error, resolved, for now
      • From: Paul Archibald <email@hidden>
  • Prev by Date: Re: Cannot set breakpoint in category
  • Next by Date: merging multiple Xcode projects
  • Previous by thread: Re: Cannot set breakpoint in category
  • Next by thread: a c++ error, resolved, for now
  • Index(es):
    • Date
    • Thread