Josh Cherry, Thank you for your reply . As you suggested I changed the perl code to:   
 
if (mdMatchupTestc::mdMUReadWrite_InitializeDataFiles($readwrite) != $mdMatchupc::mdMUReadWrite_NoError ){
   print( "Failed to Initialize mdMatchupTestc::mdMUReadWrite ",
     mdMatchupTestc::mdMUReadWrite_GetInitializeErrorString($readwrite). "\n");

 
    When I run the perl interpreter I get the message,
Name "mdMatchupc::mdMUReadWrite_NoError" used only once: possible typo at test.p
l line 31.
Use of uninitialized value in numeric ne (!=) at test.pl line 31.
 
Could you please tell us why we are getting this message. I though C++ enumerations were like constants and would not require initialization. Thank you for your help/
 
 
> Date: Mon, 29 Sep 2008 10:08:53 -0400
> From: jcherry@ncbi.nlm.nih.gov
> To: frank_chang91@hotmail.com
> CC: swig-devel@lists.sourceforge.net
> Subject: Re: [Swig-devel] SWIG 1.3.36 , Perl 5.8.8 C++ enumeration problem
>
>
>
> On Mon, 29 Sep 2008, Frank Chang wrote:
>
> >
> > We read that SWIG Perl can handle C++ enumerations. But, when we use the
> > enumerations in our test.pl program:
> ...
>
> > we get the Perl interprepter message : Bareword
> > "mdMatchupc::mdMUReadWrite_NoError" not allowed while "strict subs" in
> > use at test.pl line 31. Is there a correct way to use packages with C++
> > enumerations in our perl program?
>
> mdMatchupc::mdMUReadWrite_NoError is an unquoted string in Perl. You want
> $mdMatchupc::mdMUReadWrite_NoError.
>
> This should really have gone to the user list, not the development list.
>
> Josh
>



Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn Now