This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problem with catalog()
- From: Mangal Pandey <gcc_help at yahoo dot co dot in>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 26 May 2006 06:20:26 +0100 (BST)
- Subject: Re: problem with catalog()
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