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