Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
added 29 characters in body
Source Link
Bojangles

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.

  1. Copied the folder from arduino-022/libraries/Ethernetarduino-022/libraries/Ethernet and arduino-022/libraries/SPIarduino-022/libraries/SPI to my project folder and then iI made some changes to the includes in order to work. The result is some errors about DDRBDDRB and PORTBPORTB.

  2. 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 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()'

    
    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()'

I want to use eclipse for arduino develpment and i have some issues.

I use Eclipse + Eclipse avr plugin + winavr. I managed to compile the arduino core library into a static library.

Now i want to use my ethernet shield but i cant find a way to use the ethernet library with Eclipse.

  1. Copied the folder from arduino-022/libraries/Ethernet and arduino-022/libraries/SPI to my project folder and then i made some changes to the includes in order to work. The result is some errors about DDRB and PORTB.

  2. 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 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()'

I want to use eclipse for Arduino development and I have some issues.

I use Eclipse + Eclipse AVR plugin + WinAVR. I managed to compile the Arduino core library into a static library.

Now I want to use my ethernet shield but I can't find a way to use the ethernet library with Eclipse.

  1. Copied the folder from arduino-022/libraries/Ethernet and arduino-022/libraries/SPI to my project folder and then I made some changes to the includes in order to work. The result is some errors about DDRB and PORTB.

  2. 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 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()'
Source Link
kechap

Using arduino Ethernet.h under Eclipse

I want to use eclipse for arduino develpment and i have some issues.

I use Eclipse + Eclipse avr plugin + winavr. I managed to compile the arduino core library into a static library.

Now i want to use my ethernet shield but i cant find a way to use the ethernet library with Eclipse.

  1. Copied the folder from arduino-022/libraries/Ethernet and arduino-022/libraries/SPI to my project folder and then i made some changes to the includes in order to work. The result is some errors about DDRB and PORTB.

  2. 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 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()'

I don't know what else to do. Has anyone tried something like this?