# OpenGL GLUI glui.h link - big problem!

This topic is 4863 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I've been trying to link GLUI to my existing OpenGL/GLUT application...but it will not work no matter how hard I try! I am coding in C and compile my work on a command line (not using VC++ or any other package) I have placed glui.h in my complier's include/GL folder along with all the glut and opengl header files I link to. I have also added glui32.lib to the lib folder with all the other glut and opengl libraries. My program works fine until I add the line #include <GL/glui.h>, I don't even have to write any GLUI code for the problems to start happening. I compile my program with the following line: gcc -o run program.c -lglu32 -lglut32 -lopengl32 -lglaux -lglui32 -lcg -lcgGL (Here I link to Cg libraries as well as I use a Cg pixel shader in my program.) This gives me hundreds of errors all for glui.h (as a small example: C:/Dev-Cpp/include/GL/glui.h:34: parse error before "Arcball" C:/Dev-Cpp/include/GL/glui.h:47: parse error before "RGBc" C:/Dev-Cpp/include/GL/glui.h:47: syntax error before '{' token C:/Dev-Cpp/include/GL/glui.h:1646: this' undeclared (first use C:/Dev-Cpp/include/GL/glui.h:1654: trans_type' undeclared (firs C:/Dev-Cpp/include/GL/glui.h: At top level: C:/Dev-Cpp/include/GL/glui.h:1659: parse error before '}' token) I have downloaded some examples for glui and they seem to run in VC++....so I must have the files needed somewhere..? But I cannot make these examples run from the command line either... Please help, I have been trying to simply link these libraries for days now and I havnt even written a line of GLUI code! Dan

1. 1
2. 2
3. 3
4. 4
frob
13
5. 5

• 16
• 13
• 20
• 12
• 19
• ### Forum Statistics

• Total Topics
632171
• Total Posts
3004554

×