Operating System - HP-UX
1846885 Members
3399 Online
110256 Solutions
New Discussion

Re: Problem with system header file

 
Bill Calver
Advisor

Problem with system header file

Hi all,
I'm trying to compile with aCC on HP-UX 11.11 and I'm getting a strange error. The error is as follows:

Error 136: Exact position unknown; near ["/usr/include/sys/_inttypes.h", line 86]. # Constant expression expected following '#if' or '#elif'; no tokens left after macro expansion.

The header file looks ok. Since this is a standard header file I won't include the text (and I've verified that it has the same file content as on other 11.11 machines).

None of my own header files are including this file so it must be coming from some other system file but I'm going in circles trying to trace it!

Can anyone tell me what Error 136 refers to? Do I need something specific in my compile line?

Thanks,
B
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Problem with system header file

Shalom,

Can you post a version number? There may be a patch and nothing wrong with your code.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven Schweda
Honored Contributor

Re: Problem with system header file

In one "/usr/include/sys/_inttypes.h",
line 86, I see:

#ifdef _INTEL_SDK

Any chance that this macro has some strange
definition? (Or what's on _your_ line 86?)

"aCC -E" might reveal something about what's
happening.
Bill Calver
Advisor

Re: Problem with system header file

Thanks for the replies,

SEP: aCC -V gives:
HP ANSI C++ B3910B A.03.60

SS: aCC -E gives:
#line 1 "Main.cpp"
#line 1 "/opt/aCC/include/iostream/iostream.h"

#line 1 "/usr/include/memory.h"

#line 1 "/usr/include/sys/stdsyms.h"

#line 7 "/usr/include/memory.h"

#line 1 "/opt/aCC/include/string.h"

#line 1 "/opt/aCC/include/cstring"

#line 1 "/usr/include/string.h"

#line 1 "/usr/include/sys/_inttypes.h"


#line 86
typedef char int8_t;

etc...

Line 86 is right after an #ifdef __LP64__

Thanks for the help,
B