Q. I am receiving errors when compiling AVS/Express 5.0 with the Sun C++ 5.0
compiler.
A. AVS/Express V5.0 was compiled with the 4.2 compilers under the Sun Solaris platform.
Compiling under 5.0 can cause errors similar to;
".../avs_ex_sol/express/include/avs/gis/cia.h", line 146: Error: streampos
is not defined.
This may be resolved by using the -compat flag.
The following is from a Sun "readme" file.
-compat
The C++ compiler has two principal modes, one accepts ARM semantics and language
defined by the 4.2 compiler (compatibility mode). The other accepts constructs according
to the ANSI/ISO standard (standard mode). These two modes are incompatible with each other
because the ANSI/ISO standard forces significant, incompatible changes in name mangling,
vtable layout and other ABI details. These two modes are differentiated by the -compat
option as follows:
-compat
-compat=4
Sets the compiler for compatibility with C++ 4.0.1, C++ 4.1, and C++ 4.2 compilers.
(Specifying -compat is equivalent to specifying -compat=4.)
-compat=5
Sets the compiler for compatibility with full C++ 5.0 features. The default is -compat=5.
|