Hi, i'm new inthis forum, and relatively new in gcc, well i got a problem compiling a project. The project was developed in two parts since one of them is almost independent (controls a printer on the RS232 port). Both parts works fine, but trying to get them in a single binary is getting me a headache. The printer part is all done, i've encapsulated all the functionality in 6 functions defined in "printer.h" and "printer.c" files. This is for reducing the code in the other part so we can just include the file and call the respectively functions. But the linker throws an error
./Obj/callback.o(.text+0xda0): In function `vdCBCommandButton':
: undefined reference to `IF_OnClick'
But, i don't know what is causing the error, the printer.c has all the includes, and those are in the directories passed to the compiler
Anyone have an idea of what i'm doing wrong?
P.S.: Sorry for the bad english