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 4 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 4 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 4 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

  • Tue, 10/13/2026 - 12:00
    gurux.dlms.java 4.0.97
  • Tue, 09/22/2026 - 14:02
    Gurux.DLMS.Net 9.0.2609.2201
  • Mon, 09/21/2026 - 10:18
    Gurux.DLMS.Net 9.0.2609.2101
  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202

New forum topics

  • Need RJ45 pin configuration for Saral 300 and Saral 305 Secure meters
  • Query Regarding Class 63 Status Mapping Support in Gurux DLMS Python
  • Inhemeter
  • DLMS Server - Profile Generic - can't add too many items to profile generic capture object - how to set maximum profile entries
  • HDLC Frames sequencing
More

Who's new

  • Asier Sierra
  • BlessyAnn
  • sravya.thota@m…
  • Diwakar
  • williamorussell
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin