gcc version required

4 posts / 0 new
Last post
xxq20121221
gcc version required

Hi,
if I want to compile the DLMS.c or DLMS.cpp on linux and use the gcc tool chain,which version is required?

secondtononewe

I compile the DLMS,and meet a promblem:

debian:/home/zhangling/Gurux.DLMS.cpp-master/development# make
Compiled src/GXAdjacentCell.cpp successfully!
Compiled src/GXAPDU.cpp successfully!
Compiled src/GXApplicationContextName.cpp successfully!
Compiled src/GXAuthenticationMechanismName.cpp successfully!
Compiled src/GXBytebuffer.cpp successfully!
Compiled src/GXCipher.cpp successfully!
Compiled src/GXDateTime.cpp successfully!
Compiled src/GXDLMSActionItem.cpp successfully!
src/GXDLMSActionSchedule.cpp: In constructor ‘CGXDLMSActionSchedule::CGXDLMSActionSchedule()’:
src/GXDLMSActionSchedule.cpp:44: error: type ‘CGXDLMSActionSchedule’ is not a direct base of ‘CGXDLMSActionSchedule’
src/GXDLMSActionSchedule.cpp: In constructor ‘CGXDLMSActionSchedule::CGXDLMSActionSchedule(std::string)’:
src/GXDLMSActionSchedule.cpp:49: error: type ‘CGXDLMSActionSchedule’ is not a direct base of ‘CGXDLMSActionSchedule’
make: *** [obj/GXDLMSActionSchedule.o] 错误 1
debian:/home/zhangling/Gurux.DLMS.cpp-master/development#

Does the mistake related to the gcc version?

Kurumi
Kurumi's picture

Hi,

Our versions are newer. Let me know if you can't update to the newer version and we'll fix those few issues.
Errors are coming because your compiler doesn't support delegating constructors.
https://secure.wikimedia.org/wikipedia/en/wiki/C++11#Object_construction...

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

secondtononewe

Thank you very much, we choose to modify it to fit our compiler instead of upgrading gcc version.