From: Tom Flynn (flynnt++at++cthulhu.engr.sgi.com)
Date: 08/09/2000 13:38:50
On Wed, 9 Aug 2000, GAUVIN Yves wrote:
> I've got the following message when I try to compile:
> [gauvin++at++d2r2 sofi]$ make
> making OpenGL DSO version of sofi
> make[1]: Entering directory `/home/gauvin/sofi/OPT.I386.OPENGL'
> /usr/bin/g++ -O -O -Wall -MD -DI386 -DLinux -I/usr/include
> -I/usr/include/CC -I/usr/include/g++-3 -I/usr/include
> -I/usr/include/g++ -o sofi.DSO -L/usr/lib -L/usr/lib/libpfdb
> -L/lib -L/lib -L/usr/lib -lpfdu_ogl -lpfui -lpfuiD -lpfutil_ogl
> -lpf_ogl -lglib -lxml -lz -Wl -L/home/gauvin/VRPN/vrpn/pc_linux/
> -L/home/gauvin/VRPN/quat -lvrpn -lquat -L/usr/X11R6/lib -lGLU -lGL
> -lXext -lXmu -lX11 -lm
You also need to link with libpr. Also, I don't see any object files on
your link line there. (unless main() is hidden within one of the
libraries you're linking with)...
> /usr/bin/ld: warning: libGLU.so.1, needed by /usr/lib/libpfdu_ogl.so,
> may conflict with libGLU.so.3
This is just a warning, but you should still see that you have the latest
version of the libraries you're linking with. Performer 2.3.1 is compiled
with a version of Mesa that is OpenGL ABI complient. Thus the performer
libraries have a dependency on libGL.so.1 and libGLU.so.1. You might
want to make sure the rest of your libraries that use OpenGL were compiled
with a sufficiently recent version of OpenGL (see the Performer Linux FAQ
for our list of dependencies)..
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
This tells me one of two things:
1) you compiled your object files with a compilier other than gcc/g++ and
when g++ goes to link with those object files it cannot the symbol for
main().
or
2) none of the libraries / object files on your link line contain main()
:)
good luck, have fun,
tom
-- "Mongooses are famous for their snake-fighting ability, and are almost always victorious because of their speed, agility, and timing and also because of their thick coat."
This archive was generated by hypermail 2b29 : Wed Aug 09 2000 - 13:38:55 PDT