c - Compiling the uIP library in Arduino IDE -
I am trying to compile a very simple Arduino program that connects to a server and it "fixes" \ N ". The program makes extensive use of the UIP library (in fact, it is a library based on the UIP, but it seems almost identical). Here's my sketch:
#include & lt; uip.h & gt; Zero setup () {connect_example2 (); } Zero loop () {uip_send ("OK \ n", 3); } Zero connect_example2 (zero) {uip_ipaddr_t ipaddr; UIPPepader (& ipaddr, 192,168,1,100); uip_connect (& ipaddr, HTONS (8080)); } However, when I compile, I get the following error:
test.cpp.o: `connect_example2 () 'in the function: C : \ Program Files (x86) \ Arduino / test.ino: 14: `Undefined reference 'for test_pict.o: function' loop 'for UIP_connect (unsigned integer (*) [2], unsigned int): C : \ Program Files (x86) \ Arduino / test.ino: 8: Undefined Reference '' for `UIP_SEND (Zero Cost *, Int) ', Arduino IDE Library Is properly connected to What can be the problem?
"undefined context" error means that unlike your statement IDE is not linking to the library It's just looking for the header, which means that you did not get an undeclared function error. I think the Arduino IDE is not configured with the library. Have you tried compiling a UI example sketch to make sure that the library is properly installed?
Comments
Post a Comment