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.
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.
Hi Mikko,
We have downloaded latest stack(29-04-2020) from github and trying to compile DLMSClientProject. Failed. Below is the compilation log. Looks like lot of places data type is changed.
In file included from src/communication.c:16:0:
src/../include/communication.h:131:12: warning: ‘struct tm’ declared inside parameter list will not be visible outside of this definition or declaration
struct tm* start,
^~
src/communication.c: In function ‘time_now’:
src/communication.c:46:41: warning: implicit declaration of function ‘time’; did you mean ‘nice’? [-Wimplicit-function-declaration]
time_initUnix(value, (unsigned long)time(NULL));
^~~~
nice
src/communication.c: In function ‘com_readRowsByEntry2’:
src/communication.c:1200:9: warning: format not a string literal and no format arguments [-Wformat-security]
printf(str);
^~~~~~
src/communication.c: At top level:
src/communication.c:1212:12: warning: ‘struct tm’ declared inside parameter list will not be visible outside of this definition or declaration
struct tm* start,
^~
src/communication.c:1209:5: error: conflicting types for ‘com_readRowsByRange’
int com_readRowsByRange(
^~~~~~~~~~~~~~~~~~~
In file included from src/communication.c:16:0:
src/../include/communication.h:128:5: note: previous declaration of ‘com_readRowsByRange’ was here
int com_readRowsByRange(
^~~~~~~~~~~~~~~~~~~
src/communication.c: In function ‘com_readRowsByRange’:
src/communication.c:1220:66: warning: passing argument 3 of ‘cl_readRowsByRange’ makes integer from pointer without a cast [-Wint-conversion]
if ((ret = cl_readRowsByRange(&connection->settings, object, start, end, &data)) != 0 ||
^~~~~
In file included from src/../include/communication.h:22:0,
from src/communication.c:16:
src/../include/../../development/include/client.h:147:9: note: expected ‘long unsigned int’ but argument is of type ‘struct tm *’
int cl_readRowsByRange(
^~~~~~~~~~~~~~~~~~
src/communication.c:1220:73: warning: passing argument 4 of ‘cl_readRowsByRange’ makes integer from pointer without a cast [-Wint-conversion]
if ((ret = cl_readRowsByRange(&connection->settings, object, start, end, &data)) != 0 ||
^~~
In file included from src/../include/communication.h:22:0,
from src/communication.c:16:
src/../include/../../development/include/client.h:147:9: note: expected ‘long unsigned int’ but argument is of type ‘struct tm *’
int cl_readRowsByRange(
^~~~~~~~~~~~~~~~~~
src/communication.c: In function ‘com_readProfileGenerics’:
src/communication.c:1421:51: warning: passing argument 3 of ‘com_readRowsByRange’ from incompatible pointer type [-Wincompatible-pointer-types]
ret = com_readRowsByRange(connection, pg, &startTime.value, &endTime.value);
^
src/communication.c:1209:5: note: expected ‘struct tm *’ but argument is of type ‘long unsigned int *’
int com_readRowsByRange(
^~~~~~~~~~~~~~~~~~~
src/communication.c:1421:69: warning: passing argument 4 of ‘com_readRowsByRange’ from incompatible pointer type [-Wincompatible-pointer-types]
ret = com_readRowsByRange(connection, pg, &startTime.value, &endTime.value);
^
src/communication.c:1209:5: note: expected ‘struct tm *’ but argument is of type ‘long unsigned int *’
int com_readRowsByRange(
^~~~~~~~~~~~~~~~~~~
make: *** [obj/communication.o] Error 1
Thanks
Mohan Raj
Hi Mikko,
Hi Mikko,
Sorry for the inconvenience. corrected by disabling the macro
Thanks
Mohan Raj
Hi Mohan,
Hi Mohan,
I check this and it seems that new version is commit to GitHub a little bit too early. All the files were not copied yet. The new version is released in 10 mins where this is fixed.
BR,
Mikko
Hi,
Hi,
This is now fixed. Get the latest version.
BR,
Mikko
Hi Mikko,
Hi Mikko,
Thank you very much. I shall check now and if any issues shall create new post.
Thank you
Mohan Raj