Hi Shawn,
It looks like you can pick up HP's CC with:
> #define __HP_aCC 62500
and HP Unix with:
> #define __hpux 1
Since you said "HP-UX ia64 aCC does not support 128bit unsigned ints",
you might want to add `&& !defined(__HP_aCC)` near line 131 of
config.h (http://www.cryptopp.com/docs/ref/config_8h_source.html).
This is probably your pain point with errors:
> #define __cplusplus 199711L
Compilers circa 1997 had a lot of quirks and nuances relating to
templates (VC++ 5/6 and GCC 2.9 or 3.x, IIRC). Below is from config.h
(http://www.cryptopp.com/docs/ref/config_8h_source.html):
00434 #if defined(__MWERKS__)
00435 #define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern class
CRYPTOPP_DLL
00436 #elif defined(__BORLANDC__) || defined(__SUNPRO_CC)
00437 #define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS template class
CRYPTOPP_DLL
00438 #else
00439 #define CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS extern template class
CRYPTOPP_DLL
00440 #endif
00441
00442 #if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !
defined(CRYPTOPP_IMPORTS)
00443 #define CRYPTOPP_DLL_TEMPLATE_CLASS template class CRYPTOPP_DLL
00444 #else
00445 #define CRYPTOPP_DLL_TEMPLATE_CLASS
CRYPTOPP_EXTERN_DLL_TEMPLATE_CLASS
00446 #endif
00447
00448 #if defined(__MWERKS__)
00449 #define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern class
00450 #elif defined(__BORLANDC__) || defined(__SUNPRO_CC)
00451 #define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS template class
00452 #else
00453 #define CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS extern template
class
00454 #endif
00455
00456 #if defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) && !
defined(CRYPTOPP_EXPORTS)
00457 #define CRYPTOPP_STATIC_TEMPLATE_CLASS template class
00458 #else
00459 #define CRYPTOPP_STATIC_TEMPLATE_CLASS
CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS
00460 #endif
Do you have any sample code provided by HP relating to how the
declarations should be made? I would try some knob turning on some of
those defines.
I've also seen a lot of problems with other compilers defining
__GNUC__ (Intel ICC/ICPC and Clang). GCC's
`__attribute__((aligned(x)))` extension is at the top of the list. I
can't tell if __GNUC__ has been defined anywhere by aCC (your posts
are being truncated), so you might want to try an explicit -U__GNUC__.
Jeff
On Mar 28, 9:39 am, Shawn Firth <[email protected]> wrote:
> Jeff,
> HP-UX ia64 aCC does not support 128bit unsigned
> ints:http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_He...
>
> Below is the aCC preprocessor output when processing config.h (I added it
> to my simple size program):
>
> Script started on Thu Mar 28 09:03:50 2013
> jagia64% aCC -DNDEBUG -g +DD64 -v -AA +Olit=none -dM -E siez zes.cpp
>
> /opt/aCC/lbin/ecom -architecture 64 -ia64abi all -inst compiletime -sysdir
> /usr/include -test namespaces -koenig_lookup on -ansi_for_scope on
> -inline_power 1 -link_type dynamic -fpeval float -fpevaldec _Decimal32
> -tls_dyn on -list expandedforstdout -target_os 11.31 --list_macros
> --sys_include /opt/aCC/include_std --sys_include
> /opt/aCC/include_std/iostream_compat --sys_include /usr/include
> --sys_include /usr -D_HP_IA64ABI -D_BIND_LIBCALLS
> -D_Math_errhandling=MATH_ERREXCEPT -D__hpux -D__unix -D__ia64=1
> -D__ia64__=1 -D_BIG_ENDIAN=1 -D__STDCPP__ -D_HP_NAMESPACE_STD -D_LP64
> -D__LP64__ -D__cplusplus=199711L -D_INCLUDE__STDC_A1_SOURCE
> -D__HP_aCC=62500 -D_HP_INSTANTIATE_T_IN_LIB -D_INLINE_ASM
> -D_FLT_EVAL_METHOD=0 -D_DEC_EVAL_METHOD=0 -DNDEBUG sizes.cpp
> #define __SIGNED_CHARS__ 1
> #define __cplusplus 199711L
> #define _WCHAR_T 1
> #define _BOOL 1
> #define __ARRAY_OPERATORS 1
> #define __EXCEPTIONS 1
> #define __RTTI 1
> #define __PLACEMENT_DELETE 1
> #define __EDG_RUNTIME_USES_NAMESPACES 1
> #define __EDG_IA64_ABI 1
> #define __EDG_TYPE_TRAITS_ENABLED 1
> #define __EDG__ 1
> #define __EDG_VERSION__ 401
> #define __EDG_SIZE_TYPE__ unsigned long
> #define __EDG_PTRDIFF_TYPE__ long
> #define _HP_IA64ABI 1
> #define _BIND_LIBCALLS 1
> #define _Math_errhandling MATH_ERREXCEPT
> #define __hpux 1
> #define __unix 1
> #define __ia64 1
> #define __ia64__ 1
> #define _BIG_ENDIAN 1
> #define __STDCPP__ 1
> #define _HP_NAMESPACE_STD 1
> #define _LP64 1
> #define __LP64__ 1
> #define _INCLUDE__STDC_A1_SOURCE 1
> #define __HP_aCC 62500
> #define _HP_INSTANTIATE_T_IN_LIB 1
> #define _INLINE_ASM 1
> #define _FLT_EVAL_METHOD 0
> #define _DEC_EVAL_METHOD 0
> #define NDEBUG 1
> #define __STD_STDLIB_H
> #define __STD_CSTDLIB
> #define _ERRNO_INCLUDED
> #define _SYS_STDSYMS_INCLUDED
> #define _INCLUDE_XOPEN_SOURCE_PRE_500
> #define _INCLUDE_XOPEN_SOURCE_PRE_600
> #define _INCLUDE_STDC_SOURCE_PRE_199901
> #define _HPUX_SOURCE
> ...
>
> read more »
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.