如何编译 CORBA 的 IDL 文件?

发布于 2024-10-15 13:13:26 字数 544 浏览 2 评论 0原文

我在这里遇到一个问题,我必须编译一个 IDL 文件才能在 java 中使用。实际上我想为此使用 OTS 或 JTS,我发现 IDL 文件需要导入另一个文件等等,这是代码:

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

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

我想,让我们使用以下命令进行编译: idlj -fall ITransaction 结果如下:

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

我读到我必须在一个大型教程中执行此操作,现在我不知道可能出了什么问题。好的,当前未定义,为什么?! jts 应该可以工作,对吧?!

...

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:

#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:

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?!

...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傲鸠 2024-10-22 13:13:26

您有一个对 Current 接口的前向引用,但该接口的定义位于注释下方。尝试取消注释。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文