• 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
type specifier missing?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

type specifier missing?!


  • Subject: type specifier missing?!
  • From: Markian Hlynka <email@hidden>
  • Date: Thu, 26 May 2005 18:52:16 -0600

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: type specifier missing?!
      • From: Cameron Hayne <email@hidden>
  • Prev by Date: Weak linking vs. non-weak Linking
  • Next by Date: doubled symbols
  • Previous by thread: Weak linking vs. non-weak Linking
  • Next by thread: Re: type specifier missing?!
  • Index(es):
    • Date
    • Thread