This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL

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);
		}
}

0