This is what I get:
Code: Select all
erik@erik-1215N:~/Proj$ make
gcc -o sensor -Wall -ltelldus-core main.o
main.o: In function `main':
main.c:(.text+0xeb): undefined reference to `tdInit'
main.c:(.text+0x163): undefined reference to `tdSensorValue'
main.c:(.text+0x1f9): undefined reference to `tdSensorValue'
main.c:(.text+0x284): undefined reference to `tdSensor'
main.c:(.text+0x291): undefined reference to `tdClose'
collect2: error: ld returned 1 exit status
make: *** [all] Error 1
Code: Select all
erik@erik-1215N:~/Proj$ ld -ltelldus-core main.o
ld: main.o: undefined reference to symbol '__stack_chk_fail@@GLIBC_2.4'
//lib/i386-linux-gnu/libc.so.6: error adding symbols: DSO missing from command line
http://developer.telldus.com/browser#ex ... rs/polling
Tellduscore installation I have used:
http://developer.telldus.com/wiki/TellS ... tionUbuntu
in /etc/apt/sources.list I put
deb http://download.telldus.com/debian/ unstable main
Version of compiler and linker:
Code: Select all
erik@erik-1215N:~/Proj$ gcc –version
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
erik@erik-1215N:~/Proj$ ld -version
GNU ld (GNU Binutils for Ubuntu) 2.24
Eeee PC 1215N ASUS