Operating System - HP-UX
1752806 Members
6107 Online
108789 Solutions
New Discussion юеВ

Problem in compilation with va_list

 
BALAJI CHANDRAN
Occasional Contributor

Problem in compilation with va_list

Dear sir,

I have a below said function prototype in the .h file like this

func1(char *,va_list,char *,int,int).

I am calling this function in a proc file.while compiling this proc file in HP-UX version 11i i am getting theeror like this

PCC-S-02201, Encountered the symbol "va_list" when expecting one of the following:

... auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,


But when i am compiling with HP-UX 11.0 ,I am not getting any problem.


Regards
Balaji
2 REPLIES 2
Umapathy S
Honored Contributor

Re: Problem in compilation with va_list

hi Balaji,
You need to include stdarg.h in our .h file.

#include

That will fix the problem.

see man stdarg for more details.

HTH
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
BALAJI CHANDRAN
Occasional Contributor

Re: Problem in compilation with va_list

Hi Umapathy,

I have used the same header file ,i have not got any problem in HP-UX 11.0 ,but i am getting the problem in HP-UX 11i

Regards
Balaji