PaulStoffregen / Ethernet

Ethernet library for Teensy (Wiznet W5100 / W5200 / W5500)
http://www.pjrc.com/teensy/td_libs_Ethernet.html
130 stars 83 forks source link

Compiler Error in dns.cpp #40

Open formeforgit opened 4 years ago

formeforgit commented 4 years ago

Hi, im not speak english - please have indulgence

Enviroment: ubuntu 18.04 - latest update/upgrade Arduino 1.8.10 lib Ethernet 2.0.0

i have compile the example from mysql_connection https://github.com/ChuckBell/MySQL_Connector_Arduino/ and found more at once compiler-errors.

The MySQL-example "query_result" init only with IPADRESS; no more variables. When this sample compile I become 2 error in DNS.cpp

i have fear by this detail: `libraries/Ethernet/src/utility/w5100.h:459:25: warning: result of '(256 << 8)' requires 18 bits to represent, but 'int' only has 16 bits [-Wshift-overflow=]

define htons(x) ( (((x)<<8)&0xFF00) | (((x)>>8)&0xFF) )

` Please see attached files for full errormessages.

thanks

eth-DNS_err eth-DNS_error.txt