Hi,
I need a refrence of a typedef'ed structure in a file in which it is
not defined. I cannot include the header file in which the typedef is
defined.
file_a.h
----------
typedef struct dummy
{
...
}struct_a;
-------------------------------------------------------
file_b.h
----------
void foo(struct_a var1);
-------------------------------------------------------
How do I let the compiler/linker know that struct_a is defined
somewhere else. I cannot include file_a.h in file_b.h as both the files
are included in many .c files.
I need a refrence of a typedef'ed structure in a file in which it is
not defined. I cannot include the header file in which the typedef is
defined.
file_a.h
----------
typedef struct dummy
{
...
}struct_a;
-------------------------------------------------------
file_b.h
----------
void foo(struct_a var1);
-------------------------------------------------------
How do I let the compiler/linker know that struct_a is defined
somewhere else. I cannot include file_a.h in file_b.h as both the files
are included in many .c files.
Comment