Generated code (Cpp v1.3.1) does not compile

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Generated code (Cpp v1.3.1) does not compile

Post by Support Team »

There are two bugs in generated code for the UnifiedAutomation Cpp Server SDK 1.3.1:

1.) The version check in XXX_identifiers.h fails
2.) The filenames for subtypes of BaseEventType are wrong.

To fix point 1. you can change the define in version_coremodule.h from

Code: Select all

#define PROD_MINOR2 0
to

Code: Select all

#define PROD_MINOR2 1 
Alternatively you can change the version check in the generated file from

Code: Select all

#if !(PROD_MAJOR == 1 && PROD_MINOR == 3 && PROD_MINOR2 == 1))
to

Code: Select all

#if !(PROD_MAJOR == 1 && PROD_MINOR == 3 && PROD_MINOR2 == 0))
Note that this file will be overwritten each time the UaModeler generates code.

To fix point 2. you have to change the filenames of the event types from [EventType]base.cpp and [EventType]base.h to [EventType]data.cpp and [EventType]data.h.

A bugfix release of the UaModeler will be available soon.
Best regards
Unified Automation Support Team

Post Reply