Re: Help porting from codewarrior?
Re: Help porting from codewarrior?
- Subject: Re: Help porting from codewarrior?
- From: Bob Sabiston <email@hidden>
- Date: Wed, 21 Sep 2005 13:20:35 -0500
On Sep 21, 2005, at 1:17 PM, Cameron Hayne wrote:
On 21-Sep-05, at 1:32 PM, Bob Sabiston wrote:
These are due to some declarations like the following in the above header file:
extern FILE *log_file; extern Boolean logging;
Leaving aside the issue of where FILE & Boolean are defined, I point out that these two lines are merely declarations of two global variables. The "definition" of those two global variables must be in one of your C or C++ files. (The "definition" of a variable is where storage space for it is allocated, otherwise known as "where it lives".) So you need to find where those variables live. If they don't exist anywhere in your C or C++ files, then perhaps these declarations are obsolete and can just be deleted.
-- Cameron Hayne
Yes, that is true, but the error is coming from the words FILE and Boolean. That is every reference to Boolean, whether it's an extern or not, is generating an error. Like this:
error: 'Boolean' does not name a type
for the following:
class curve { public: point_type **point_list; int length; Boolean cyclic; vector_type *start_tangent; vector_type *end_tangent; struct curve *previous; struct curve *next; };
What do other people include in their prefix files?
Thanks Bob
|
_______________________________________________
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