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