As the title says, I am porting some code from MSVC (not sure which version, using Visual Studio 2008), which compiles without errors or warnings, to GCC 4.0 which generates a large number of generic errors.
The project uses a large header file 'precompiled.h' which includes two other header files, math/math.h and math/vector.h in that order. I've already disabled the ALWAYS_SEARCH_U SER_PATHS which was causing other errors.
From math/math.h
From math/vector.h
Which generates the following errors:
../math/Vector.h:106: error: 'qMath' has not been declared
../math/Vector.h:106: error: 'Fabs' was not declared in this scope
And the same sort of errors wherever qMath is referenced.
Been mucking around with this for awhile now and haven't gotten anywhere, any help would be appreciated.
The project uses a large header file 'precompiled.h' which includes two other header files, math/math.h and math/vector.h in that order. I've already disabled the ALWAYS_SEARCH_U SER_PATHS which was causing other errors.
From math/math.h
Code:
class qMath {
public:
...[INDENT]static float Fabs( float x );[/INDENT]
...
};
inline float qMath::Fabs( float x ) {
...[INDENT]return x;[/INDENT]
}
Code:
inline bool qVec2::Compare( const qVec2 &a, const float epsilon ) {
// the following is line 106[INDENT]( qMath::Fabs( x - a.x ) > epsilon )[/INDENT]
...
../math/Vector.h:106: error: 'qMath' has not been declared
../math/Vector.h:106: error: 'Fabs' was not declared in this scope
And the same sort of errors wherever qMath is referenced.
Been mucking around with this for awhile now and haven't gotten anywhere, any help would be appreciated.
Comment