F
friend.05
I have three files.
graph.h:
My header file where I have typedef for my structure and function
delcaration
typedef struct _ipc_actors ipc_graph_actors;
typedef ipc_graph_type *ipc_graph_pointer;
ipc_graph_pointer ipc_graph_new(graph_pointer,char *, char *, char *,
char *, char *);
graph.c:
My funciton is implemented in this file. And also my sturcture defition
are in this file.
main.c:
Here I am calling my fuction ipc_graph_new(graph_pointer,char *, char
*, char *, char *, char *);
This return a one pointer which is pointer to struture which I have
define din graph.c
But when I try to use this pointer to access the attributes of this
structure it gives me following error:
dereferencing pointer to incomplete type.
I think I have to use extern somewhere, but I am not sure.
graph.h:
My header file where I have typedef for my structure and function
delcaration
typedef struct _ipc_actors ipc_graph_actors;
typedef ipc_graph_type *ipc_graph_pointer;
ipc_graph_pointer ipc_graph_new(graph_pointer,char *, char *, char *,
char *, char *);
graph.c:
My funciton is implemented in this file. And also my sturcture defition
are in this file.
main.c:
Here I am calling my fuction ipc_graph_new(graph_pointer,char *, char
*, char *, char *, char *);
This return a one pointer which is pointer to struture which I have
define din graph.c
But when I try to use this pointer to access the attributes of this
structure it gives me following error:
dereferencing pointer to incomplete type.
I think I have to use extern somewhere, but I am not sure.