[jacorb-developer] idl import

carol_rizzi carol.rizziray at gmail.com
Tue Jul 24 22:59:02 CEST 2012


Hello.

I'm trying to import an idl file from another idl. But it looks like the
word "import" could not be recognized by the compiler.

My codes:

------------------------------------
//test1.idl
module test1 {
    interface itf{};
};
------------------------------------
//test2.idl
import ::test1
module test2 {
    interface itf2{};
};
------------------------------------

In some forums I found following sintax: import "test1.idl". I tested both
the syntaxes, but I always get the same error:

test2.idl (line 2):  WARNING: Identifier `_import' collides with a keyword;
use an escaped identifier to ensure future compatibility.
import ::test1;
^
test2.idl (line 2):  Expected one of `typedef' `struct' `union' `enum'
`const' `exception' `interface' `valuetype' `module'; encountered
`<identifier>'.
import ::test1;
^

The compilation command: idlj -fall test2.idl
-- 
View this message in context: http://old.nabble.com/idl-import-tp34207163p34207163.html
Sent from the JacORB - Dev mailing list archive at Nabble.com.



More information about the jacorb-developer mailing list