Error building C/C++ project in Eclipse: undefined referenced functions -
i making c/c++ project in eclipse generating makefile automatically. errors:
/home/globalcom/desktop/eclipse/bi3000_testapplication/default/../functions/functions.c:22: undefined reference bi3000_clearlines' /home/globalcom/desktop/eclipse/bi3000_testapplication/default/../functions/functions.c:25: undefined reference to
bi3000_writedisplay' /home/globalcom/desktop/eclipse/bi3000_testapplication/default/../functions/functions.c:28: undefined reference bi3000_writedisplay' /home/globalcom/desktop/eclipse/bi3000_testapplication/default/../functions/functions.c:31: undefined reference to
bi3000_writedisplay' /home/globalcom/desktop/eclipse/bi3000_testapplication/default/../functions/functions.c:34: undefined reference `bi3000_writedisplay'
where default folder generated eclipse , saves makefile. have include paths of in project->properties->c/c++ general->paths , symbols defined , #include in project seems recognised, getting compiling error.
the function defined in functions.h , declared in functions.c:
void print_in_display (const char * line1, const char * line2, const char * line3, const char * line4){
const char firstline = 1; bi3000_clearlines(0,7); if(line1 != null) writedisplay(firstline, 0,0,8,(char *) line1); if(line2 != null) writedisplay(firstline + 1, 0,0,8,(char *) line2); if(line3 != null) writedisplay(firstline + 2, 0,0,8,(char *) line3); if(line4 != null) writedisplay(firstline + 3, 0,0,8,(char *) line4);
} functions (writedisplay) contained in librsm.h . , print_in_display() called in main()
thanks in advance
i assuming c code file extension. in case try using keyword extern , declare prototype of "bi3000_writedisplay" function in functions.c. hope helps.
Comments
Post a Comment