Newbie question - matrix class
Hello I have just installed boost library and i want to use the matrix and vector operations that are provided within the library computer graphics programming instead of creating matrix and vector classes by myself. Is there any function available with in the libbbost that linearize the 2D array so that i can use them directly to OpenGL. And i am also having trouble to create a Makefile for that to link to libboost. i attached a sample Makefile Could anyone provide me hint which library to put in the LDFLAGS so that i can use all the functionalities of libboost? Thanks in advance Regards Sajjad ***************************Makefile***************************************' CC = g++ CFLAGS = LD = cc LDFLAGS = -lGL -lglut -lGLEW PROG = volumizer SRCS = SiGaussianElimination.cpp volMain.cpp SiVector4.cpp SiVector3.cpp SiWriter.cpp SiMath.cpp SiMatrix4.cpp SiMatrix3.cpp SiClock.cpp SiDisplay.cpp SiEventHandler.cpp SiGLUtil.cpp SiAffine.cpp OBJS = $(SRCS:.cpp=.o) all: $(PROG) $(PROG): $(OBJS) $(CC) -o $@ $(OBJS) $(LDFLAGS) %.o: %.cpp $(CC) $(CFLAGS) -c $< clean: rm -f $(PROGS) *.o *~ # rule for building dependency lists, and writing them to a file # named ".depend". depend: $(RM) .depend makedepend -f- -- $(CFLAGS) -- $(SRCS) > .depend # now add a line to include the dependency list. include .depend # DO NOT DELETE
participants (1)
-
Sajjad