Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

type specifier missing?!



Xcode 1.5, Panther....

sorry if this is a stupid question, but I have:

mytypes.h:
#include "Utilities.h"
typedef struct __Move_T
{

   bool null;
   bool pass;
//and so forth
} Move_T;

Utilities.cc:
#include "Utilities.h"
#include "mytypes.h"

void myfunction(int start, int* numbers, Move_T* posn, int array_size)
{
}

and

Utilities.h:
#include <stdio.h>
#include "mytypes.h"

void myfunction(int start, int* numbers, Move_T* posn, int array_size);

The compiler is telling me:
error: type specifier omitted for parameter `Move_T'


Why? I don't get it... The only problem I see is that mytypes.h includes Utilities.h includes mytypes... and this is circular... Is there any way around this other than putting myfunction in another file?


Thanks!

Markian

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.