|
The error I encountered earlier is due to a problem with the
IDL tool that generates code from the .idl documents. The include protection
(#ifdef __CURRENT_H__) in the generated include file doesn’t add the namespace
(module). For example: /******************** IDL FILE ***************************/ #ifndef SPDV_Current_idl #define SPDV_Current_idl module SPDV { struct Current { double value; }; }; #endif /******************** GENERATED INCLUDE PROTECTION ***************************/ #ifndef __CURRENT_H__ #define __CURRENT_H__ The generated include protection should be: ‘__SPDV_CURRENT_H__’,
not ‘__CURRENT_H__’. The result of this error means that, in the
same source file, you cannot use the same IDL-generated symbols (class/struct
names) even if they are differentiated by namespaces, because the generated include
protection won’t allow both ‘.h’ files to be included. Spacecraft
Software Engineer 858-375-2077
“We Make
Space Happen” |
_______________________________________________ Mico-devel mailing list [email protected] http://www.mico.org/mailman/listinfo/mico-devel
