Menu

#3 gcc-4.1.1 compile error

open
nobody
5
2007-02-02
2007-02-02
w_m_b
No

gcc-4.1.1 on gentoo compile fails with

/include/L3D/path.h:69: error: extra qualification ‘L3DPath::’ on member ‘Draw’
src/screen.cpp: In function ‘bool L3DUseRootWindow()’

This is after applying the patch in bug [993060] Build Errors using gcc 3.3.2

compile works after changing line 69 in paths.h from
void L3DPath::Draw(); //show on screen the path

to:

void Draw(); //show on screen the path

./test/maths.cpp still fails with:
maths.cpp:10: error: ‘struct L3DVector3’ has no member named ‘unitvector’
maths.cpp:11: error: ‘struct L3DVector3’ has no member named ‘unitvector’
make: *** [maths] Error 1

./test/maptest fails also but it does not appear to be in the make file in test so it may not be working altogether.

gcc maptest.cpp -L../ -lL3D -L/usr/X11R6/lib -lGL -lGLU -lXxf86vm -I ../include -o maptest
maptest.cpp: In function ‘void fire()’:
maptest.cpp:356: error: ‘class L3DCamera’ has no member named ‘yt’
maptest.cpp:357: error: ‘class L3DCamera’ has no member named ‘yt’
maptest.cpp:358: error: ‘class L3DCamera’ has no member named ‘xt’
maptest.cpp:359: error: ‘class L3DCamera’ has no member named ‘xt’
maptest.cpp:360: error: ‘class L3DCamera’ has no member named ‘xt’
maptest.cpp:373: error: ‘class L3DCamera’ has no member named ‘x’
maptest.cpp:373: error: ‘class L3DCamera’ has no member named ‘y’
maptest.cpp:373: error: ‘class L3DCamera’ has no member named ‘z’
maptest.cpp:373: error: ‘class L3DCamera’ has no member named ‘xt’
maptest.cpp:373: error: ‘class L3DCamera’ has no member named ‘yt’
maptest.cpp: In function ‘void draw2d()’:
maptest.cpp:528: error: ‘class L3DCamera’ has no member named ‘xt’
maptest.cpp:528: error: ‘class L3DCamera’ has no member named ‘yt’
maptest.cpp:528: error: ‘class L3DCamera’ has no member named ‘zt’
maptest.cpp: In function ‘void draw3d()’:
maptest.cpp:556: error: no matching function for call to ‘L3DCamera::Rotate(float&, float&, float&)’
../include/L3D/camera.h:35: note: candidates are: void L3DCamera::Rotate(float, L3DVector3)
maptest.cpp: At global scope:
maptest.cpp:596: error: ‘::main’ must return ‘int’
make: *** [maptest] Error 1

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.