hi, 
i want to port sqlite in an application in tinyos, but the application
doesn't want to compile the library. 
the amalgamation version of sqlite is composed of shell.c, sqlite3.c
sqlite3.h e sqlite3ext.h. I have found 2 solutions:
1-i have included the header of the amalgamation version of sqlite in the
tos.h file (without compile sqlite) and i have introduced the command 
__attribute__ ((C, spontaneous)) in a function of sqlite at the scope to
compile the same function always BUT DOESN'T GO,,,the application compile
the header files but isn't able to go to the file c;the result is infact
"undefined reference to the name of the function of sqlite";
2-i have compiled sqlite and i have linked the library with particular flags
in makefile to the application, 
CFLAGS += /dev/sqlite             #where are the header files included

LDFLAGS += -lsqlite3 -L/dev/build/.libs       #add the library libsqlite3.a

DOESN'T GO,,
QUESTION:IS IT POSSIBLE THAT AN APPLICATION OF TINYOS ISN'T ABLE TO LINK THE
HEADER FILE OF A LIBRARY TO THE CORRESPONDENT FILE IN C?




alditu wrote:
> 
> TinyOS is all based in Linux?
> To use it in Windows you have to install unix emulators always?
> 
> Thank you in advance.
> 
> -- 
> aldo
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 

-- 
View this message in context: 
http://old.nabble.com/TinyOS-tp24336177p28961501.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to