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. Dlms Program :Error Compiling For Arduino Board

dlms program :Error compiling For arduino board

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 mnvasani , 7 June, 2019
Forums
Gurux.DLMS

hello , gurux
when i compile the program in arduino at that time this type of error show in the error box.

error:
Arduino: 1.8.9 (Windows 7), Board: "Arduino/Genuino Uno"

In file included from sketch\src\GXAPDU.cpp:35:0:

c:\users\admin\appdata\local\temp\arduino_build_777380\sketch\include\gxapdu.h:38:18: fatal error: vector: No such file or directory

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.
.

please give me the solution of this type error ,
thank you!

Image
Profile picture for user Kurumi

Kurumi

7 years 3 months ago

Hi,

Hi,

You need to copy include src folders from development folder to target directory where server.ino file is.

BR,

Mikko

mnvasani

7 years 3 months ago

thanks for your fast response

thanks for your fast response.
I have done what you suggest as per your previous reply. but after that I compiled the program in arduino but again another errors are occur in the error box.

look error:
C:\Users\Admin\Desktop\GuruxDLMS.c-master\Arduino_IDE\server\server.ino: In function 'void loop()':

C:\Users\Admin\Desktop\GuruxDLMS.c-master\Arduino_IDE\server\server.ino:435:61: warning: invalid conversion from 'char*' to 'unsigned char*' [-fpermissive]

if (svr_handleRequest2(&settings, tmp, available, &reply) != 0)

^

In file included from C:\Users\Admin\Desktop\GuruxDLMS.c-master\Arduino_IDE\server\server.ino:38:0:

sketch\include/server.h:54:9: note: initializing argument 2 of 'int svr_handleRequest2(dlmsServerSettings*, unsigned char*, short unsigned int, gxByteBuffer*)'

int svr_handleRequest2(

^

sketch\src\bytebuffer.c:246:5: error: redefinition of 'bb_setUInt8ByIndex'

int bb_setUInt8ByIndex(

^

sketch\src\bytebuffer.c:210:5: note: previous definition of 'bb_setUInt8ByIndex' was here

int bb_setUInt8ByIndex(

^

sketch\src\bytebuffer.c: In function 'bb_setUInt8ByIndex':

sketch\src\bytebuffer.c:252:15: warning: implicit declaration of function 'bb_allocate' [-Wimplicit-function-declaration]

int ret = bb_allocate(arr, index, 1);

^

sketch\src\notify.c: In function 'notify_parsePush':

sketch\src\notify.c:242:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

arr_push(items, key_init(obj, (void*)(unsigned long long)index));

^
exit status 1
Error compiling for board Arduino/Genuino Uno.

CAN YOU GIVE ME THE WITHOUT ERROR FILE OF ARDUINO PROGRAM ?

lot a thanks for your previous response.
MN VASANI..

Image
Profile picture for user Kurumi

Kurumi

7 years 3 months ago

Hi,

Hi,

Get the latest version from GitHub. Open gxignore.h and uncomment all the functionality that you don't need. It saves a lot of flash memory.

BR,

Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More

Who's new

  • cyby
  • Metin Onan
  • ssv007
  • 3nzol3dur
  • dw772
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin