Documenting Problems That Were Difficult To Find The Answer To

TAO IDL Compiler Error About Reserved Words

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“.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: