Hi
I encounter the following error when I try to call the rand() function:
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccC5tFHR.o(.text+0x20e): In
function `main' : undefined reference to `rand'
I downloaded msp430-libc-1.0.20030207 and was able to make and make install
through cygwin. (I am on Windows XP).
The command line I used to compile my code:
msp430-gcc.exe file.c -mmcu=msp430x1121 -o
file.elf -L"C:\mspgcc\msp430\lib" -lc
I also tried the -O2 and -lm options, but same result. I know that
msp430-gcc can see libc.a otherwise it would have complained about it.
I have included, stdlib.h, stdio.h and stddef.h header files.
Any help will be deeply appreciated.
Regards
Dipak Prasad