Re: LoadFile

New Message Reply Date view Thread view Subject view Author view

Allan Schaffer (aschaffe++at++shark.paris.sgi.com)
Fri, 17 Mar 1995 19:26:35 +0100


On Mar 17, 6:03pm, abrend++at++idt.unit.no wrote:
>
> What library do I miss here : (I'm using LoadFile()):
>
> cc -o SimpleViewer -L. -L/usr/src/Performer/lib
> -L/usr/src/Performer/src/lib SimpleViewer.o
> -lpfdu -lInventorXt -lpfsgi -lpfflt -lpfiv -lpfdwb -lX11 -lpfutil
> -lfm -lpfMedit -lpf -lpr -limage -lmpc -lgl -lm -lmalloc -lfpe -lC
> ld:
> Unresolved:
> pfdResizeGeom
[...]

I think this is just a problem of link-line ordering. libpfiv is
dependent upon libpfdu, so libpfdu must come later in the link line.

Here's what I use in my generic makefile (for 1.2+pfiv .. In
2.0, this all changes again):

SHARED = -lpfsgi -lpfiv -lpfdu -lpfdwb -lpfflt -lpfutil -lpf -lpr -lInventor
LDLIBS = $(SHARED) -lmpc -limage -lfm_s -lgl_s -lm -lfpe -lC

> For the future: How do I find out which libraries to include ?

Good question! I usually use 'nm lib*.a | grep foo'.

Allan

-- 
Allan Schaffer
Silicon Graphics
aschaffe++at++sgi.com
http://reality.sgi.com/employees/aschaffe

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:05 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.