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? |