Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Can't Compile Arduino Example In IDE

Can't compile Arduino example in IDE

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By Vimukthi , 9 March, 2021
Forums
Gurux.DLMS

I have tried to compile the Arduino example code for the guruxDLMS library, but it gave me an error when compiling for the Arduino Mega board. I was using the latest Arduino version and downloaded the latest GuruxDLMS library file.
this is the error code,

In file included from sketch\include/objectarray.h:41:0,
from sketch\include/dlmssettings.h:42,
from sketch\include/serverevents.h:38,
from sketch\GXDLMSClient.h:40,
from C:\Users\devpr\OneDrive\Desktop\GuruxDLMS.c-master\Arduino_IDE\client\client.ino:34:
sketch\include/gxobjects.h:40:10: fatal error: arpa/inet.h: No such file or directory
#include <arpa/inet.h>
^~~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Arduino Mega or Mega 2560.

Profile picture for user Kurumi

Kurumi

5 years 3 months ago

Hi,

Hi,

Open gxignore.h file and un-comment this line:
#define DLMS_IGNORE_IP6_SETUP

Arduino is not supporting IPv6 as default. I think how this can be solved so this is not needed.

BR,
Mikko

Vimukthi

5 years 3 months ago

In reply to Hi, by Kurumi

Thank you, Mikko. Now it is

Thank you, Mikko. Now it is compiling without an error.

Profile picture for user Kurumi

Kurumi

5 years 3 months ago

Hi,

Hi,

Support for IPv6 is removed as a default for Arduino and now this is not happening anymore.
Get the latest version.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin