compiling Open GL on SGI?
Posted on 1998-10-30
I am trying to learn OpenGL on the SGI. Anyhow I can't figure out what I need to do to compile a basic program such as
int main(int argc, char** argv)
auxInitDisplayMode (AUX_SINGLE | AUX_RGBA);
auxInitPosition (0,0,500, 500);
glClearColor(0.0, 0.0, 0.0, 0.0);
I know this doesn't do anything other then use some openGL calls. When I compile trying
cc -I./libaux sample.c
I get a bunch of link errors similar to
ld: ERROR 33: Unresolved text symbol "glClear" -- 1st referenced by sample.o.
I assume this is because I am not including the openGL libraries in my compile statement. what are they? what should my compile statement look like?
give my a single line that will compile the above code.
aux.h is header files from the book "OpenGL Programming Guide" You can even omit aux.h and just give me a line that will compile a program that contains one line in the main statement