-->
Page 1 of 1

Problems compiling when uart.h is included

PostPosted: Fri May 19, 2017 7:56 am
by Rubikan
Hey everyone :)

I am trying to write a little project with the open-sdk for esp8266, but as soon as I want to include uart.h to allow uart communication, I can't compile it anymore:

Code: Select allxtensa-lx106-elf-gcc -Teagle.app.v6.ld  camera-node.o  -nostdlib -Wl,--start-group -lmain -lnet80211 -lwpa -llwip -lpp -lphy -lc -Wl,--end-group -lgcc -o camera-node
camera-node.o:(.literal+0x4): undefined reference to `uart0_tx_buffer'
camera-node.o:(.literal+0x18): undefined reference to `uart_rx_intr_enable'
camera-node.o:(.literal+0x20): undefined reference to `uart_init'
camera-node.o: In function `getCameraVersion':
camera-node.c:(.text+0x1a): undefined reference to `uart0_tx_buffer'
camera-node.o: In function `uart_rx_task':
camera-node.c:(.text+0x86): undefined reference to `uart_rx_intr_enable'
camera-node.o: In function `user_init':
camera-node.c:(.text+0xa7): undefined reference to `uart_init'
collect2: error: ld returned 1 exit status
make: *** [camera-node] Error 1


It seems the linker is missing some references to functions which should be provided, but I just can't find the right way to include everything to make it work. I hope someone here can help me. Thanks in advance!