Re: problem with catalog()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx> 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 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux