WhatMeWorry
2005.06.30, 09:44 PM
I've got one file where I've put all my user defined types
into. It is named TypeDefs.h
typedef int myType; // one of many user types.
----------------------------------
Source File: MySource.cpp
#include "TypeDefs.h"
myType heyThere; //compiler error: myType does not name a type.
----------------------------------
It's so simple, that I think something very subtle is going on.
I've got many other source files which #include the TypeDefs.h file
with no problems whatsoever. I even just copied and pasted the
typedef directly into the Source file and then the compile works fine.
I'm thinking that Xcode for some reason is simpling not #including the
header file TypeDefs.h. Maybe I've turned off including without
realizing it? Is there a way within Xcode to verify that TypeDefs.h is
being included?
into. It is named TypeDefs.h
typedef int myType; // one of many user types.
----------------------------------
Source File: MySource.cpp
#include "TypeDefs.h"
myType heyThere; //compiler error: myType does not name a type.
----------------------------------
It's so simple, that I think something very subtle is going on.
I've got many other source files which #include the TypeDefs.h file
with no problems whatsoever. I even just copied and pasted the
typedef directly into the Source file and then the compile works fine.
I'm thinking that Xcode for some reason is simpling not #including the
header file TypeDefs.h. Maybe I've turned off including without
realizing it? Is there a way within Xcode to verify that TypeDefs.h is
being included?