B
Ben
I get an error when the compilator tries to link the object files of
my program. I have the files group.h and group.c that use a struct
define in logic.h and two fonctions define in logic.c.
The program compile group.o fine, but when trying to link, I get an
error in group.h saying that a struct that is defined in logic.h
cannot be found. Include logic.h is explicitly call in group.h because
it used an instance of that struct. What I dont understand is how,
when the program compile, it is able to find the reference to the
struct in logic, but when he tries to link, he does not find it
anymore.
If I take all the code from logic.h and logic.c and I copy it in
group.h and group.c respectively, it links fine.
I don't know what else to try, any ideas is welcome.
Benoit Grimard
my program. I have the files group.h and group.c that use a struct
define in logic.h and two fonctions define in logic.c.
The program compile group.o fine, but when trying to link, I get an
error in group.h saying that a struct that is defined in logic.h
cannot be found. Include logic.h is explicitly call in group.h because
it used an instance of that struct. What I dont understand is how,
when the program compile, it is able to find the reference to the
struct in logic, but when he tries to link, he does not find it
anymore.
If I take all the code from logic.h and logic.c and I copy it in
group.h and group.c respectively, it links fine.
I don't know what else to try, any ideas is welcome.
Benoit Grimard