Re: problem with dual included idl files
- From: Alex Hornby <alex hornby org uk>
- To: Jason Shupe <jshupe huey jpl nasa gov>
- Cc: orbit-perl-list gnome org
- Subject: Re: problem with dual included idl files
- Date: 31 Aug 2002 11:17:48 +0100
On Thu, 2002-08-29 at 19:42, Jason Shupe wrote:
> I've got two idl files that include the same two other idl files. When
> I try to use the first two in the same perl program I get the following
> error when I run perl -c foo.pl
>
> Constant subroutine SERIALIZER_NO_WAIT redefined at
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/CORBA/ORBit.pm line 65535.
> Constant subroutine SERIALIZER_WAIT_FOREVER redefined at
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/CORBA/ORBit.pm line 65535.
> foo.pl syntax OK
>
> If the first idl file includes the second, and then second idl file
> includes the other two idl files, then I don't get the error.
>
Hi Jason,
Do your idl files use include guards to protect from multiple inclusion?
e.g. File Foo.idl should be wrapped in something like:
#ifndef FOO_IDL
#define FOO_IDL
// file contents go here
#endif
Cheers,
Alex.
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]