Skip to content

Compiler Error in dns.cpp #40

@formeforgit

Description

@formeforgit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions