Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 compile failure

open
nobody
None
5
2003-08-10
2003-08-10
Anonymous
No

MSGraphUI.C: In member function `MSTrace*
MSGraph::findSelectableTrace(const XEvent*)':
MSGraphUI.C:213: call of overloaded `sqrt(int)' is ambiguous
/usr/include/bits/mathinline.h:440: candidates are: double
sqrt(double)
../MSTypes/MSFloatVector.H:150:
MSTypeVector<double> sqrt(const MSTypeVector<double>&)
/usr/include/c++/3.2.2/cmath:465: long double
std::sqrt(long double)
/usr/include/c++/3.2.2/cmath:461: float std::sqrt(float)
MSGraphUI.C:216: call of overloaded `sqrt(int)' is ambiguous
/usr/include/bits/mathinline.h:440: candidates are: double
sqrt(double)
../MSTypes/MSFloatVector.H:150:
MSTypeVector<double> sqrt(const MSTypeVector<double>&)
/usr/include/c++/3.2.2/cmath:465: long double
std::sqrt(long double)
/usr/include/c++/3.2.2/cmath:461: float std::sqrt(float)
MSGraphUI.C:219: call of overloaded `sqrt(int)' is ambiguous
/usr/include/bits/mathinline.h:440: candidates are: double
sqrt(double)
../MSTypes/MSFloatVector.H:150:
MSTypeVector<double> sqrt(const MSTypeVector<double>&)
/usr/include/c++/3.2.2/cmath:465: long double
std::sqrt(long double)
/usr/include/c++/3.2.2/cmath:461: float std::sqrt(float)
MSGraphUI.C: In member function `MSBoolean
MSGraph::findLineSegment(int, int)':
MSGraphUI.C:249: call of overloaded `sqrt(int)' is ambiguous
/usr/include/bits/mathinline.h:440: candidates are: double
sqrt(double)
../MSTypes/MSFloatVector.H:150:
MSTypeVector<double> sqrt(const MSTypeVector<double>&)
/usr/include/c++/3.2.2/cmath:465: long double
std::sqrt(long double)
/usr/include/c++/3.2.2/cmath:461: float std::sqrt(float)
MSGraphUI.C:252: call of overloaded `sqrt(int)' is ambiguous
/usr/include/bits/mathinline.h:440: candidates are: double
sqrt(double)
../MSTypes/MSFloatVector.H:150:
MSTypeVector<double> sqrt(const MSTypeVector<double>&)
/usr/include/c++/3.2.2/cmath:465: long double
std::sqrt(long double)
/usr/include/c++/3.2.2/cmath:461: float std::sqrt(float)
MSGraphUI.C:255: call of overloaded `sqrt(int)' is ambiguous
/usr/include/bits/mathinline.h:440: candidates are: double
sqrt(double)
../MSTypes/MSFloatVector.H:150:
MSTypeVector<double> sqrt(const MSTypeVector<double>&)
/usr/include/c++/3.2.2/cmath:465: long double
std::sqrt(long double)
/usr/include/c++/3.2.2/cmath:461: float std::sqrt(float)
../MSTypes/MSTypeDataInlines.C: In static member function
`static unsigned int MSTypeData<Type,
Allocator>::dataOffset() [with Type = unsigned char, Allocator
= MSAllocator<unsigned char>]':
../MSTypes/MSTypeDataInlines.C:69: instantiated from
`Type* MSTypeData<Type, Allocator>::elements() [with Type
= unsigned char, Allocator = MSAllocator<unsigned char>]'
../MSTypes/MSBinaryMatrix.H:302: instantiated from here
../MSTypes/MSTypeDataInlines.C:101: warning: invalid
offsetof from non-POD type `struct
MSDataAlignment<unsigned char>'; use pointer to member
instead
../MSTypes/MSTypeDataInlines.C: In static member function
`static unsigned int MSTypeData<Type,
Allocator>::dataOffset() [with Type = double, Allocator =
MSAllocator<double>]':
../MSTypes/MSTypeDataInlines.C:69: instantiated from
`Type* MSTypeData<Type, Allocator>::elements() [with Type
= double, Allocator = MSAllocator<double>]'
../MSTypes/MSFloatMatrix.H:391: instantiated from here
../MSTypes/MSTypeDataInlines.C:101: warning: invalid
offsetof from non-POD type `struct
MSDataAlignment<double>'; use pointer to member instead
../MSTypes/MSTypeDataInlines.C: In static member function
`static unsigned int MSTypeData<Type,
Allocator>::dataOffset() [with Type = int, Allocator =
MSAllocator<int>]':
../MSTypes/MSTypeDataInlines.C:69: instantiated from
`Type* MSTypeData<Type, Allocator>::elements() [with Type
= int, Allocator = MSAllocator<int>]'
../MSTypes/MSTypeDataInlines.C:91: instantiated from
`Type& MSTypeData<Type, Allocator>::elementAt(unsigned
int) [with Type = int, Allocator = MSAllocator<int>]'
../MSTypes/MSTypeMatrix.H:355: instantiated from `Type&
MSTypeMatrix<Type>::elementAt(unsigned int) [with Type =
int]'
../MSTypes/MSTypeMatrix.H:516: instantiated from
`MSMatrixSTypePick<Type>::operator Type() const [with
Type = int]'
../MSGUI/MSGraph.H:248: instantiated from here
../MSTypes/MSTypeDataInlines.C:101: warning: invalid
offsetof from non-POD type `struct MSDataAlignment<int>';
use pointer to member instead
make[2]: *** [MSGraphUI.lo] Error 1
make[2]: Leaving directory
`/usr/src/RPM/BUILD/aplus-fsf-4.18/src/MSGUI'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/src/RPM/BUILD/aplus-fsf-4.18/src'
make: *** [all-recursive] Error 1

Discussion