I want to use eclipse for arduino develpmentArduino development and iI have some issues.
I use Eclipse + Eclipse avrAVR plugin + winavrWinAVR. I managed to compile the arduinoArduino core library into a static library.
Now iI want to use my ethernet shield but i cantI can't find a way to use the ethernet library with Eclipse.
Copied the folder from arduino-022/libraries/Ethernet
arduino-022/libraries/Ethernetand arduino-022/libraries/SPIarduino-022/libraries/SPIto my project folder and then iI made some changes to the includes in order to work. The result is some errors about DDRBDDRBand PORTBPORTB.Added the folders Ethernet and SPI into the project's include path. The result is the following.
main.cpp:(.text+0x8): undefined reference to
Server::Server(unsigned int)' ./main.o: In functionloop': main.cpp:(.text+0x36): undefined reference toServer::available()' main.cpp:(.text+0x3c): undefined reference toClient::operator bool()' main.cpp:(.text+0x56): undefined reference toClient::available()' main.cpp:(.text+0x64): undefined reference toClient::read()' main.cpp:(.text+0xf6): undefined reference toClient::connected()' main.cpp:(.text+0x110): undefined reference toClient::stop()' ./main.o: In functionsetup': main.cpp:(.text+0x138): undefined reference toEthernet' main.cpp:(.text+0x13a): undefined reference toEthernet' main.cpp:(.text+0x144): undefined reference toEthernetClass::begin(unsigned char*, unsigned char*)' main.cpp:(.text+0x14c): undefined reference to `Server::begin()'
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()'