Go Down

Topic: More Arduino 1.0 issues (Read 3 times) previous topic - next topic

jopiek

I solved the compile errors for EthernetBonjour.cpp by placing #include "Arduino.h" below the other includes:


//  Copyright (C) 2010 Georg Kaindl
//  http://gkaindl.com
//
//  This file is part of Arduino EthernetBonjour.
//
//  EthernetBonjour is free software: you can redistribute it and/or
//  modify it under the terms of the GNU Lesser General Public License
//  as published by the Free Software Foundation, either version 3 of
//  the License, or (at your option) any later version.
//
//  EthernetBonjour is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Lesser General Public License for more details.
//
//  You should have received a copy of the GNU Lesser General Public
//  License along with EthernetBonjour. If not, see
//  <http://www.gnu.org/licenses/>.
//

#define  HAS_SERVICE_REGISTRATION      1  // disabling saves about 1.25 kilobytes
#define  HAS_NAME_BROWSING             1  // disable together with above, additionally saves about 4.3 kilobytes

#include <string.h>
#include <stdlib.h>

extern "C" {
  #include <utility/EthernetUtil.h>
}

#include <utility/EthernetCompat.h>
#include "EthernetBonjour.h"
#include "Arduino.h"

// then the rest of the 'old' code...

Paul Stoffregen

Maybe there's something not quite right about the 1.0-rc2 headers, since it works if you include them in one order, but not in another?

If you send me the code which produces all those errors, I'll investigate.  Please email me directly, paul at pjrc dot com.


hypercapnian

Was also using George Kaindls DHCP library and can no longer compile and just found this thread.  Did anyone find a solution ormanage to port the lib to Arduino 1.0?

Any help much appreciated!

Go Up