Operating System - Linux
1829033 Members
2518 Online
109986 Solutions
New Discussion

use_facet and ctype<char> error on aCC

 
Ganesh C.N.
New Member

use_facet and ctype<char> error on aCC

Hi ...

I am trying to compile a piece of code on HP-UX 11.00 using aCC 3.27 compiler WITHOUT the -AA option. I get errors related to the definitions of use_facet and ctype. I checked the /opt/aCC/include directory (which is used when -AA option is turned off ) and there are no definitions for use_facet and ctype.

Is there any workaround for this problem ? Can someone tell me what to do ?

This is the line I am trying to compile :
const ctype& ct= std::use_facet< ctype>(locale());

And these are the errors I get :

Error (future) 600: # Type specifier is omitted; "int" is no longer assumed.
const ctype& ct= std::use_facet< ctype >(locale());

Error 24: # ';' expected instead of '<'.
const ctype& ct= std::use_facet< ctype >(locale());

Error 204: # Uninitialized const variable "const int ctype".
const ctype& ct= std::use_facet< ctype >(locale());

Error 19: # Unexpected '>'.
const ctype& ct= std::use_facet< ctype >(locale());

Error 24: # '' expected instead of 'ctype'.
const ctype& ct= std::use_facet< ctype >(locale());

Error 172: # Undeclared variable 'use_facet'.
const ctype& ct= std::use_facet< ctype >(locale());


Thanks in advance....

Ganesh

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: use_facet and ctype<char> error on aCC

These templates are not part of the -AP support.

You may be able to purchase this from Roguewave or use STLport.