From: jec@bubba.osf.org (Jonathan Chinitz)
Subject: Re: Problem in compiling an IDL file
Date: 10 Sep 1993 20:23:58 GMT [thread overview]
Message-ID: <26qnou$3mf@paperboy.osf.org> (raw)
In-Reply-To: RWESSMAN.93Sep10093324@rwessman.us.oracle.com
In article <RWESSMAN.93Sep10093324@rwessman.us.oracle.com> rwessman@rwessman.us.oracle.com (Rick Wessman) writes:
>I'm having difficulty compiling an IDL file when including DCE include files.
>The IDL file (simplified) looks like this:
>
>#include <dce/nbase.h>
>#include <dce/id_base.h>
>
>.
>.
>.
>interface foobarif
>{
> void foobar([out, ref] sec_id_pac_t *pac);
>}
>
>When I run idl, I get:
>
>idl -v -cc_cmd "gcc -c -g" -keep all -I. -I/opt/dcelocal/share/include -I/usr/xpg2include foobar.idl
>Running C preprocessor /lib/cpp foobar.idl -I. -I. -I/opt/dcelocal/share/include -I/usr/xpg2include -I/usr/include
>Importing IDL file /opt/dcelocal/share/include/dce/nbase.idl
>Running C preprocessor /lib/cpp /opt/dcelocal/share/include/dce/nbase.idl -I. -I. -I/opt/dcelocal/share/include -I/usr/xpg2include -I/usr/include
>Warning: Semantic checking prevented by other reported errors
>idl: File /opt/dcelocal/share/include/dce/idlbase.h, line 160: typedef struct
>idl: Syntax error near "typedef"
>
>Compilation aborted
>
>Has anyone ever seen this before?
>
If you want to include other .idl files in your .idl file, the proper
syntax is to use the "import" command.
So, replace the #include with the following
interface foo {
import "dce/nbase.idl";
import .....
....
}
Also, the nbase idl file is automatically included in the stub files
that are generated. Poke around the stub files and header file and you
will see that a lot of header files are included for you.
Jonathan
--
-------------------------------------------------------------------------------
Jonathan Chinitz E-mail: jec@isoft.com
IntelliSoft Corp.
Distributed Computing Solutions
P.O. Box 2645 Tel.: 508-635-9070
Acton, MA 01720 Fax: 508-635-9210
prev parent reply other threads:[~1993-09-10 20:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-09-10 16:33 Problem in compiling an IDL file Rick Wessman
1993-09-10 20:23 ` Jonathan Chinitz [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox