[apluslist] A+ 4.20-2 compilation problem under IRIX
Itzinger, Oskar
oitzinger at opec.org
Tue Dec 6 09:20:34 EST 2005
Greetings, everyone...
I'd started to use 4.18/64-bit binary for IRIX last year and I'm very
much
pleased; I also compiled the source code for 4.20 successfully [albeit
after
getting rid of some error messages first].
Recently I'd downloaded the source for 4.20-2 [unfortunately, tar -xf
overwrote
my previous aplus-fsf-4.20 directory - please change that!]; anyway,
while I
will post a full compilation report [including a configure warning and
some
warnings about declared but not referenced variables] once I've
completely
succeeded with 4.20-2, I'd run into the following errors (on my SGI FUEL
w/
IRIX 6.5.28 and MipsPro C/CC 7.4.3m):
=========
cc-3229 CC: ERROR File = ../MSTypes/MSFloatMatrix.H, Line = 30
Specializing class "MSMatrixSTypePick<double>" requires "template<>"
syntax.
class MSMatrixSTypePick<double>;
^
1 error detected in the compilation of "AGIF.C".
=========
This was easy enough to fix - I just added "template <>" [without
quotes]
before the statement (BTW, when I'd compiled 4.20, I'd received many
more
errors of the very same type, so 4.20-2 thankfully fixed almost all of
them].
However, I'm lost with the following:
=========
cc-1324 CC: ERROR File = MSPrintDisclaimer.C, Line = 197
More than one operator "-" matches the specified operands.
Built-in operator "arithmetic - arithmetic" has an
overloading
ambiguity.
Function symbol function
"std::fpos<std::mbstate_t>::operator-(std::streamoff)"
is ambiguous by inheritance.
The operand types are: std::fpos<std::mbstate_t> - long.
if ((mark2-mark1-len)>1)
^
cc-1324 CC: ERROR File = MSPrintDisclaimer.C, Line = 200
More than one operator "-" matches the specified operands.
Built-in operator "arithmetic - arithmetic" has an
overloading
ambiguity.
Function symbol function
"std::fpos<std::mbstate_t>::operator-(std::streamoff)"
is ambiguous by inheritance.
The operand types are: std::fpos<std::mbstate_t> - long.
else w+=(int)(spaceChar*(mark2-mark1-len-1L));
^
cc-1324 CC: ERROR File = MSPrintDisclaimer.C, Line = 303
More than one operator "-" matches the specified operands.
Built-in operator "arithmetic - arithmetic" has an
overloading
ambiguity.
Function symbol function
"std::fpos<std::mbstate_t>::operator-(std::streamoff)"
is ambiguous by inheritance.
The operand types are: std::fpos<std::mbstate_t> - long.
if ((mark2-mark1-len)>1) if (j!=wordCount(i)-1) strcat(buf1," ");
^
3 errors detected in the compilation of "MSPrintDisclaimer.C".
=========
My guess is that some parentheses are needed - but how should I set
them?
Your help is very much appreciated...
/oskar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://berdom.net/pipermail/apluslist/attachments/20051206/5c911667/attachment-0001.html
More information about the apluslist
mailing list