I am trying to compile the following code, but i get the error *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: _HALSETPORTBIT MODULE: program1.obj (PROGRAM1) ADDRESS: 0822H this is just for one function i am using i get the for all the function in the code. The sample programs work just fine, and i have included all the header files needed.
#include <chipcon/hal.h> #include <stdio.h> main() { halSetPortBitDir(1, 2, POUT); while (TRUE) { halSetPortBit(0, 2, TRUE); halWait(200, 14746); halSetPortBit(1, 2, FALSE); } }