Advertisement

NetBSD Mesa/OGL Linking Problems

Started by November 11, 2001 08:11 PM
-1 comments, last by hal10000 23 years, 3 months ago
I have NetBSD i386 v1.5.2 installed. Mesa is installed. 3.4.1 I believe. I ln''d my libGL*.a into /usr/lib, as well as libglut.a from the /usr/X11R6/lib directory. I''m running glut so I can avoid having to fiddle with window managers. I made the *smallest* file I possibly could. I can gcc -c it and get an object file, but when I: ld file.o -L/usr/X11R6/lib -lGL -lGLU -lglut -lm or (after the ln) ld file.o -lGL -lGLU -lglut -lm I get page after page of undefined references to things like "malloc" and "Xfree". I tried using -lc as a kinda last resort as well as -lX11. -lX11 generates a library not found. Any suggestions? I can get OpenGL to work in a Win32 environment, but I think it sucks and want to do it in some *BSD environment instead. Oh, libm is the math library right?
l8r

This topic is closed to new replies.

Advertisement