From: Beh H L <be...@si...> - 2000-09-01 14:54:51
|
Greg Fruth wrote: > Since you've already checked the file permissions, I can't think of > any reasons why that would be. Did you install XF86 separately, or > did it come with your distribution? Perhaps root is using a different > set of options for the linker. I dimly recall that there's an > environment variable called LD_OPTIONS or somesuch. Do a "printenv" as > root and as a normal user to see. Perhaps ld looks at a config file > somewhere; check the docs. > looking at the whole again, I believe you may be right - it looks very much a gcc problem than a mesa specific problem. I will try to sort this one out perhaps on the another newsgroup or mailing list more specific to gcc. Thanks for the guys who wrote back here! > <snipped for brevity> > I would also leave out Xi and Xmu, unless you know you do need them. If > you do need them, you might also need libXext, libSM and libICE, in which > case, try: > > gcc -Wall -I/usr/include/ -o lesson1 lesson1.o -L/usr/X11R6/lib \ > -lGLU -lGL -lSM -lICE -lXext -lXi -lXmu -lXt -lX11 -lm -lstdc++ -ldl well, okay, the code was a sample of the tutorials off NeHe and I was trying out the compilation to assure myself that I had installed Mesa correctly. The fact that I can compile the programme code as root demonstrates (in my eyes anyway) that there is nothing wrong with the sample programme code and nothing wrong with Mesa - however I seem to have some issues with the compiler as a normal user. Thanks again! Beh |