Skip to content

Generate config error: Keyword 'On' cannot be used as identifier in datatypeworksheet. #23

Description

@martinboers

To reproduce with plcncli 25.0.0.5997:

  • Create a new project.

  • Add the following GDS port variable to the program .hpp file:

     struct SampleStruct
     {
        uint32 On;
     };
    
     //#port
     //#attributes(Input)
     SampleStruct myStructure;
  • Assign a target to the project.

  • plcncli generate config

... results in the following error:

Keyword 'On' cannot be used as identifier in datatypeworksheet.

Why is "On" considered a keyword? As far as I am aware, this is not a keyword in C++.

Is there a complete list of keywords that cannot be used like this?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions