Question

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

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

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top