C
Carlos Martinez Garcia
Hi all:
I usually make forward declarations in headers. Something like this:
class MyClass;
Now, I need a reference to a type defined like this (traditional C Style):
typedef struct {
} DatosCdrGprs;
In my header I have a declaration:
class DatosCdrGprs;
but compiler says me there is a conflict between types "struct
DatosCdrGprs" (in my header file, at the line where is forward
declaration), and "typedef struct DatosCdrGprs DatosCdrGprs" (in the
file where is that type).
I tried also with forward declarations like:
struct DatosCdrGprs;
typedef struct DatosCdrGprs;
typedef struct DatosCdrGprs DatosCdrGprs;
but I always get errors.
¿How can I make the forward declaration?
Thanks in advance.
I usually make forward declarations in headers. Something like this:
class MyClass;
Now, I need a reference to a type defined like this (traditional C Style):
typedef struct {
} DatosCdrGprs;
In my header I have a declaration:
class DatosCdrGprs;
but compiler says me there is a conflict between types "struct
DatosCdrGprs" (in my header file, at the line where is forward
declaration), and "typedef struct DatosCdrGprs DatosCdrGprs" (in the
file where is that type).
I tried also with forward declarations like:
struct DatosCdrGprs;
typedef struct DatosCdrGprs;
typedef struct DatosCdrGprs DatosCdrGprs;
but I always get errors.
¿How can I make the forward declaration?
Thanks in advance.