hello all. i am able to compile and link opengl in linux…but i have a question about linking. if i have, a header file, say, “texture.h” that is used by more than one source file, it is going to be defined more than once, and the compiler is gonna give a bunch of errors. i know MS VC++ takes care of this problem for you, but how do i tell linux compiler to include “texture.h” only one time?
at the top of ALL of your header files you should have:
//Put all of your header in here
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.