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 1 month 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 1 month 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 1 month 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • dermida
  • Justinpeent
  • cYzhesWhQAIeYenRgH
  • MLWGzTbGsyBIaJ…
  • Rolling-Slots-PL
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin