I have a problem, which is common but i am not able to find a solution myself. I hope to have a solution from you guys who are doing a considerable work in opengl.
I was trying to use “glui” functions in my opengl program in an SGI environment for the first time. I knew that “libglui.a” and glui.h are to be present in the working directory. I get the following error when I run the code with my possible erronic Makefile structure.
ld32: FATAL 12 : Expecting n32 objects: ./libglui.a(glui.o) is of unknown type.
*** Error code 2 (bu21)
My makefile is something like this:
CC = gcc
LDFLAGS = -I /development/napi/stl -L. -lglut -lglui -lX11 -lGLU -lGL -lXmu -lm
CFLAGS = -g -I$(HOME)/research/include
OBJS = main.o input.o output.o
$(CC) -o myprog $(OBJS) $(LDFLAGS)
rm -f *.o core
I only knew that it is enough if i include glui.h in my source code and use the flag ‘-lglui’ in the makefile. I dont know if I am wrong. Can any one help me please?