Project

General

Profile

Bug #130

include files are included more than once.

Added by Félix Ingrand over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal

Description

Included struct files are not properly CPP parsed when calling genom3 with more than one component.

As a result, one get redefinition errors:

felix@Trusty64:~/work/rob/build-all$ genom3 bip/server-pocolibs ../robmotion/robmotion.gen ../robloco/robloco.gen
robsim-struct.idl:6: declaration of 'task_period' clashes with existing const
robsim-struct.idl:6:   const 'task_period' declared here
robsim-struct.idl:6: dropped declaration for 'task_period'
robsim-struct.idl:8: declaration of 'half_map_size' clashes with existing const
robsim-struct.idl:8:   const 'half_map_size' declared here
robsim-struct.idl:8: dropped declaration for 'half_map_size'
robsim-struct.idl:11: declaration of 'UNKNOWN' clashes with existing enumerator
robsim-struct.idl:11:   enumerator 'UNKNOWN' declared here
#1

Updated by Anthony Mallet about 3 years ago

  • Status changed from New to Feedback

Should be better now, can you confirm?

Note: you need to change your template to parse all files in one go,
see e.g. genom3-pocolibs:37ef114d

#2

Updated by Anthony Mallet about 3 years ago

Any feedback?

#3

Updated by Anthony Mallet over 2 years ago

  • Status changed from Feedback to Closed

No feeback. Assuming "fixed".

Also available in: Atom PDF