如何为CORBA编译IDL文件?

时间:2020-11-29 17:41:03

i have a problem here where i have to compile an IDL file to be used in java. actually i want to use OTS or JTS for this and all i foun dout is that the IDL file needs to import another file and so on, here is the code:

我有一个问题,我必须编译一个在java中使用的IDL文件。实际上我想为此使用OTS或JTS而且所有我认为IDL文件需要导入另一个文件等等,这里是代码:

#include "C:\java\jts1_0\CosTransactions.idl"

interface ITransaction: CosTransactions::TransactionalObject
{
    double charge( in double arg0 );
};

and i thought, let's compile with: idlj -fall ITransaction with the following result:

我想,让我们编译:idlj -fall ITransaction,结果如下:

ITransaction.idl (line 9): There is a forward reference to CosTransactions/Current, but it is not defined.

i read that i have to do this in a large tutorial and now i have no idea what could be wrong. ok current is not defined, well why?! jts is supposed to work, right?!

我读到我必须在一个大型教程中这样做,现在我不知道可能出错了什么。好的电流没有定义,为什么?! jts应该可以工作,对吧?!

...

1 个解决方案

#1


0  

You have a forward reference to interface Current, but the definition of this intreface is under the comments. Try to uncomment it.

您有一个前向接口Current的引用,但这个接口的定义在注释下。尝试取消注释。

#1


0  

You have a forward reference to interface Current, but the definition of this intreface is under the comments. Try to uncomment it.

您有一个前向接口Current的引用,但这个接口的定义在注释下。尝试取消注释。