Operating System - Linux
1752742 Members
5449 Online
108789 Solutions
New Discussion

Query related to <cwchar> definitions in aCC 3.27 (without -AA option)

 
Sujata_1
Occasional Contributor

Query related to <cwchar> definitions in aCC 3.27 (without -AA option)


I am compiling a project on HPUX 11 with aCC 3.27 compiler. For compatability issues, I have a requirement that I should not use the -AA flag.

The problem I am facing is that certain definitions (wint_t, fgetwc fgetws etc) in file (in /opt/aCC/include directory) are not visible in my code because of #ifdef _HP_NAMESPACE_STD. This directive is defined only when -AA option is turned on.

I have defined my own std namespace as turning off -AA option doesn't provide namespace support at all.

Can somebody advise me how to proceed ?

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Query related to <cwchar> definitions in aCC 3.27 (without -AA option)

The functions in wchar.h you mention may not exist unless you are on 11.11 or later.
<cwchar> eventually just includes <wchar.h>.