Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Problem in compiling an IDL file
@ 1993-09-10 16:33 Rick Wessman
  1993-09-10 20:23 ` Jonathan Chinitz
  0 siblings, 1 reply; 2+ messages in thread
From: Rick Wessman @ 1993-09-10 16:33 UTC (permalink / raw)


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?

--
                                    Thanks,
                                    Rick
                                    Rick Wessman
				    Network Products Division
				    Oracle Corporation
                                    rwessman@us.oracle.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem in compiling an IDL file
  1993-09-10 16:33 Problem in compiling an IDL file Rick Wessman
@ 1993-09-10 20:23 ` Jonathan Chinitz
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Chinitz @ 1993-09-10 20:23 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1993-09-10 20:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-09-10 16:33 Problem in compiling an IDL file Rick Wessman
1993-09-10 20:23 ` Jonathan Chinitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox