Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing arduino Ethernet.h under Eclipse
    text
    copied!<p>I want to use eclipse for Arduino development and I have some issues.</p> <p>I use Eclipse + Eclipse AVR plugin + WinAVR. I managed to compile the Arduino core library into a static library.</p> <p>Now I want to use my ethernet shield but I can't find a way to use the ethernet library with Eclipse.</p> <ol> <li><p>Copied the folder from <code>arduino-022/libraries/Ethernet</code> and <code>arduino-022/libraries/SPI</code> to my project folder and then I made some changes to the includes in order to work. The result is some errors about <code>DDRB</code> and <code>PORTB</code>.</p></li> <li><p>Added the folders Ethernet and SPI into the project's include path. The result is the following.</p></li> </ol> <pre> main.cpp:(.text+0x8): undefined reference to `Server::Server(unsigned int)' ./main.o: In function `loop': main.cpp:(.text+0x36): undefined reference to `Server::available()' main.cpp:(.text+0x3c): undefined reference to `Client::operator bool()' main.cpp:(.text+0x56): undefined reference to `Client::available()' main.cpp:(.text+0x64): undefined reference to `Client::read()' main.cpp:(.text+0xf6): undefined reference to `Client::connected()' main.cpp:(.text+0x110): undefined reference to `Client::stop()' ./main.o: In function `setup': main.cpp:(.text+0x138): undefined reference to `Ethernet' main.cpp:(.text+0x13a): undefined reference to `Ethernet' main.cpp:(.text+0x144): undefined reference to `EthernetClass::begin(unsigned char*, unsigned char*)' main.cpp:(.text+0x14c): undefined reference to `Server::begin()' </pre> <p>I don't know what else to do. Has anyone tried something like this?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload