I'm just learning about Arduino and specifically the Ethernet library and the DHCP library I downloaded. I thought I'd copied the example of this script correctly, but i keep getting errors such as:
In file included from DHCP_Test.cpp:9:
C:\Users\Impresario\Documents\Arduino\arduino-0022\libraries\DHCP/Dhcp.h:8:29: error: utility/types.h: No such file or directory
In file included from DHCP_Test.cpp:9:
C:\Users\Impresario\Documents\Arduino\arduino-0022\libraries\DHCP/Dhcp.h:120: error: 'u_char' does not name a type
C:\Users\Impresario\Documents\Arduino\arduino-0022\libraries\DHCP/Dhcp.h:121: error: 'u_char' does not name a type
Here is the short sketch. I would be ever so grateful for any help!
1, Use The code tages to display code /\ the # symbol above.
C:\Users\Impresario\Documents\Arduino\arduino-0022\libraries\DHCP/Dhcp.h:8:29: error: utility/types.h: No such file or directory
In file included from DHCP_Test.cpp:9:
Simple question - does the file utility/types.h file exist in the libraries folder?
If it doesn't or its not recognised then that may be the reason for the other issues.
No, the utility/types.h file is nowhere to be found and I did recognize this as the core issue. I guess I wonder where to get that from and why it wouldn'd have been part of the DHCP library that called for it.
It came the jordan.terrell blog called Arduino DHCP Library V0.4 (just now realized the entry is labedl April 2009, so it may be dated). I moved it into the arduino-0022\library.
I am having the same issue. I am using the same version of Arduino (022) and the same version of Jordan Terrell's DHCP library.
On that site:
Update 7/3/2011: This library no longer works with current builds of Arduino. At some point in the future I may decide to create a new revision, but my current focus is not on Arduino development.
Thanks zoomkat! That link to the library is functional with the latest version of Arduino (022). I downloaded and installed the library and ran the example included with the DHCP library and everything compiled and ran without modification.