TAO IDL Compiler Error About Reserved Words
August 29, 2013
Posted by on
I was getting the following error when compiling an IDL (interface definition language) file using tao_idl version 2.2.0:
Illegal syntax or missing declarator in parameter declaration
I couldn’t work out what the problem was until I read this blog post in which somebody had discovered the compiler complaining about the word “port” clashing with a reserved word.
In my case I had an IDL file try and declare a structure member named “alias“.
The solution was to append all instances of the variable name “alias” with an underscore, e.g. “_alias“.