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

a c++ error


  • Subject: a c++ error
  • From: Paul Archibald <email@hidden>
  • 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

  • Follow-Ups:
    • Re: a c++ error
      • From: "Clark Cox" <email@hidden>
  • Prev by Date: GDB jumping to unrelated library during trace.
  • Next by Date: Re: a c++ error
  • Previous by thread: GDB jumping to unrelated library during trace.
  • Next by thread: Re: a c++ error
  • Index(es):
    • Date
    • Thread