public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: problem with catalog()
@ 2006-05-26  5:20 Mangal Pandey
  2006-05-26 22:43 ` Ian Lance Taylor
  0 siblings, 1 reply; 3+ messages in thread
From: Mangal Pandey @ 2006-05-26  5:20 UTC (permalink / raw)
  To: gcc-help

Can anyone help me or if this is not the right place
for this query please suggest me the appropriate one.

TAI,
Mangal


--- Mangal Pandey <gcc_help@yahoo.co.in> wrote:

> Hi,
> 
> I'm a newbea and stuck at a small c++ function.
> please
> find it below :
> 
> #include <nl_types.h>
> #include<iostream>
> #include<errno.h>
> 
> using namespace std;
> 
> int main(void)
>  {
>    nl_catd Catalog;
>    Catalog = catopen( "../etc/tsetcatalog.cat", 0 );
>    cout<<"Catalog :  "<<Catalog<<endl;
>    if( Catalog == (nl_catd)-1 )
>     {
>      cout<<"unable to open the catalog :
> "<<strerror(errno)<<endl;
>     }
>    return 0;
>  }
> 
>
**************************************************************************
>
**************************************************************************
> 
> 
>  output below :
>              
>             Catalog :  0xffffffff
>             unable to open the catalog : Success
> 
> 
> please tell me what is the reason for this strange
> output.
> 
> I'm using gcc-4.0.1 on RHEL AS4.
> above code is working fine on solaris10.
> 
> HTH
> Mangal
> 
> Send instant messages to your online friends
> http://in.messenger.yahoo.com 
> 


Send instant messages to your online friends http://in.messenger.yahoo.com 

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

* Re: problem with catalog()
  2006-05-26  5:20 problem with catalog() Mangal Pandey
@ 2006-05-26 22:43 ` Ian Lance Taylor
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Lance Taylor @ 2006-05-26 22:43 UTC (permalink / raw)
  To: Mangal Pandey; +Cc: gcc-help

Mangal Pandey <gcc_help@yahoo.co.in> writes:

> Can anyone help me or if this is not the right place
> for this query please suggest me the appropriate one.

This is the wrong place.  This is for questions about the compiler,
not for questions about how to write C++ code.

I don't know what the right place is.  Sorry.

Ian

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

* problem with catalog()
@ 2006-05-25 13:37 Mangal Pandey
  0 siblings, 0 replies; 3+ messages in thread
From: Mangal Pandey @ 2006-05-25 13:37 UTC (permalink / raw)
  To: gcc-help

Hi,

I'm a newbea and stuck at a small c++ function. please
find it below :

#include <nl_types.h>
#include<iostream>
#include<errno.h>

using namespace std;

int main(void)
 {
   nl_catd Catalog;
   Catalog = catopen( "../etc/tsetcatalog.cat", 0 );
   cout<<"Catalog :  "<<Catalog<<endl;
   if( Catalog == (nl_catd)-1 )
    {
     cout<<"unable to open the catalog :
"<<strerror(errno)<<endl;
    }
   return 0;
 }

**************************************************************************
**************************************************************************


 output below :
             
            Catalog :  0xffffffff
            unable to open the catalog : Success


please tell me what is the reason for this strange
output.

I'm using gcc-4.0.1 on RHEL AS4.
above code is working fine on solaris10.

HTH
Mangal

Send instant messages to your online friends http://in.messenger.yahoo.com 

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

end of thread, other threads:[~2006-05-26 22:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-26  5:20 problem with catalog() Mangal Pandey
2006-05-26 22:43 ` Ian Lance Taylor
  -- strict thread matches above, loose matches on Subject: below --
2006-05-25 13:37 Mangal Pandey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).