V
virgincita schmidtmann
Sorry for inconvenience!
I have two sourcefiles file1.c and file2.c. file1.c codes the standard BST
(binary search tree) functions declarations and the basic struct definition.
file2.c has some special functions, I want to implement for exercise
purposes.
In my opinion gcc file1.c file2.c should do the linking. But the compiler is
complaining, because it doesn't know about the struct and it's pointers
(file2.c).
I tried to write a header to include file2.c. But the #include prepocessor
is before the struct and still the functions in file2 don't know about the
struct.
I would appreciate if someone can give me a hint, how to make this known and
cease my confusion.
Thank you,
Ernst
(e-mail address removed)
I have two sourcefiles file1.c and file2.c. file1.c codes the standard BST
(binary search tree) functions declarations and the basic struct definition.
file2.c has some special functions, I want to implement for exercise
purposes.
In my opinion gcc file1.c file2.c should do the linking. But the compiler is
complaining, because it doesn't know about the struct and it's pointers
(file2.c).
I tried to write a header to include file2.c. But the #include prepocessor
is before the struct and still the functions in file2 don't know about the
struct.
I would appreciate if someone can give me a hint, how to make this known and
cease my confusion.
Thank you,
Ernst
(e-mail address removed)