im having trouble linking .h and .c files, i\'ve also read some threads regarding this problem and all of them is a bit vague and still i can\'t fully grasp the concept of i
You need to include b.h in all files that uses the structures that are defined in b.h. So you need to put a #include in both files. To avoid that b.h is loaded several times, you need the directives #ifdef. In your case:
b.h
#ifndef B_H
#define B_H
typedef struct{
int x, y;
}myStruct;
void funct1(myStruct);
void funct2(myStruct);
#endif
and b.c:
#include "b.h"
void funct1(myStruct x)
{
//do something
}
void funct2(myStruct y)
{
//do something
}