a c++ error, resolved, for now
a c++ error, resolved, for now
- Subject: a c++ error, resolved, for now
- From: Paul Archibald <email@hidden>
- Date: Fri, 1 Jun 2007 09:59:43 -0700
It is a command line tool in C++. No C or Obj-C.
I think I may have solved that problem, however. There was another
file in the project that was missing a semi-colon after a class
declaration. It was not included by the file that the compiler
complained about, but was included from elsewhere in the project. I
fixed that, and now I have 151 different errors! (let's think of that
as job security)
But at least the "two or more data types" is not one of them.
Thanks for looking. Clark, you were right. I can see that I had an
error in my code (I am writing a 'wrapper" for the well-tested code,
using code scavenged from the original CodeWarrior C++ project).
I still think it was not a very helpful error message. Seems to me it
should have pointed at the location of the actual error. Oh, well.
On Jun 1, 2007, at 7:44 AM, Luca Ciciriello wrote:
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:
40hotmail.com
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