Hi,
I'm working for the inclusion of a .c function in the blink for a telosb
tmote (the classic hello world) to see how the linking work for a future
bigger app)
I posted here previously for resolving some error but now I have another
problem.
the code is:
---------------------------
//c_code.c
#include "c_code.h"
#include <stdio.h>
void stampa()
{
printf("\nhello!\n");
}
-------------------------------
//c_code.h
#ifndef C_CODE_H
#define C_CODE_H
void stampa();
#endif
-------------------------------
and in the BlinkM.nc I have #include "c_code.h" and call the function
stampa().
Before edit the makefile I wanted to see if I can compile but I have this
output:
rom...@romolo-laptop:/opt/tinyos-1.x/apps/Blink_functionC$ msp430-gcc
c_code.c
/opt/msp430/lib/gcc-lib/msp430/3.2.3/../../../../msp430/lib/crt430x110.o:gcrt0.S:72:
undefined reference to `_reset_vector__'
/tmp/cckFju67.o: In function `stampa':
c_code.c:(.text+0x14): undefined reference to `printf'
Can someone give me some advice??
luca
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help