Hello, I'm trying to write a simple serial listener application in C, using the tools provided in /support/sdk/c. I've successfully compiled the tools and run the example "seriallistener" program. However, I'm having trouble getting my own programs to compile. I have a simple test program (test.c) that contains a call to open_serial_source. When I try to compile it with
gcc -L/opt/tinyos-2.x/support/sdk/c -lmote -o test.out test.c I get the following error: /cygdrive/c/DOCUME~1/student/LOCALS~1/Temp/ccCRG2eq.o:test.c: (.text+0x7a): undefined reference to `_open_serial_source' collect2: ld returned 1 exit status I'm sure it's a problem with the way I'm invoking gcc, but I haven't been able to figure it out. Can anyone give me pointers? (I don't have much gcc experience, so please spell things out :) Thanks, Kriangsiri _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
