Operating System - HP-UX
1833786 Members
2521 Online
110063 Solutions
New Discussion

Declaration Error -- nl_catd --

 
Nishikawa Takeshi
Occasional Contributor

Declaration Error -- nl_catd --

Hi, Everyone.

I'm trying to use message catalog.
While compiling my program, Error occured always the following part in my program.

static nl_catd catfile = NULL;

Error message is the following.

cc: "test.c", 61: 1000: , line : error catfile: Unexpected symbol: "".

Now, I use HP-UX 11.11.
I define nl_types.h to use catalog message.

Tell me to resolve this error, please.

Thanks for your helping.
2 REPLIES 2
Steve Steel
Honored Contributor

Re: Declaration Error -- nl_catd --

Hi

Try

http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0x547b37f45ef7d4118fef0090279cd0f9,00.html


Otherwise please post

1)COmpiler Details

2)More of the source


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Nishikawa Takeshi
Occasional Contributor

Re: Declaration Error -- nl_catd --

Hi, Steve.

I checked URL you telled to me.
In URL, it was advice to install ANSI-C.
But I have installed ANSI-C(HP-C) yet.

I can't show all source, but at the following source same error occured.

/* include header files */
#include
#include
#include
#include

/* initialize variable */
static nl_catd catfile = NULL;

Compile with the following option.

cc -Aa -c test.c
cc: 487: warning : Possibly incorrect message catalog.
cc: "test.c", 8: 1000: , line : error catfile: Unexpected symbol: "".
cc: 2017: error : Cannot recover from earlier errors, terminating.

I can't understand what happened.

Takeshi Nishikawa.