Hi there,
I downloaded the 907 svn raydium version, compiled and installed it, then I started a new C++ project in NetBeans 6.5, linked on libraydium.so, coded the tutorials, compiled, and everything was right \o/
Now I got a problem coding c++. I'm not talking about ugly casts I have to do in order to stay C compliant
My problem is I got multiple definition compiler errors :
- multiple definition of `glutReshapeFuncCB'
- multiple definition of `glutKeyboardFuncCB'
- and so on more and more multiple definition errors...
I checked those points :
- I have no recursive looping includes
- I protected my own headers code files against multiple inclusions with ifndef def endif (classical)
Let me describe the hurting file hierarchy, don't worry it's very simple :
myProject.h includes index.h (the official raydium index.h)
main.cpp includes myProject.h
Toto.h includes myProject.h (yet because Toto owns a private GLfloat sun
)
Toto.cpp includes Toto.h
Of course I can include Gl/gl.h for GLfloat use instead of myProject.h but it will be annoying if I have to do this in all my future classes.
Oh, I although have found an interesting thing maybe related on the web :
http://learningcppisfun.blogspot.com/2009/01/inline-specializations-and-multiple.htmlDoes anyone have an idea ? I'm stucked.
JLys