home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!network.ucsd.edu!sdcc12!xm9
- From: xm9@sdcc12.ucsd.edu (richard g. adair)
- Newsgroups: comp.sys.hp
- Subject: Re: Where is regcmp on HP 9000/750?
- Summary: Linking and Philosophy
- Keywords: Linking
- Message-ID: <40678@sdcc12.ucsd.edu>
- Date: 7 Nov 92 16:14:01 GMT
- References: <Bx7x2M.Dzz@world.std.com> <Bx91Bn.9vG@apollo.hp.com>
- Sender: news@sdcc12.ucsd.edu
- Organization: Arete Associates, San Diego
- Lines: 30
- Nntp-Posting-Host: sdcc12.ucsd.edu
-
- In article <Bx91Bn.9vG@apollo.hp.com> web@apollo.HP.COM (Bill Bennett) writes:
- >From page 3-2 of the Rev 1.1 OSF/Motif Programmer's Guide:
- > 8 Link relevant libraries. cc -o app app.c -lXm -lXt -lX11 -lPW
- >libPW.a contains regcmp; it must be linked if you use XmFileSelectionBox.
-
- The number of UNIX linking options for some of the X programs are
- getting a bit silly. A computer should be able to do these things
- for you. How about changing the linker to search an index, instead
- of the direct library files. Something like:
-
- {
- Loop on unresolved functions
- Linker needs sin finction
- {
- Search /usr/lib/library.index
- Hmmm, sin is in -lm
- Insert -lm automatically into path
- Search for dependencies and auto insert required libraries
- Warn user "#include <math.h>" not in source
- }
- }
-
- Sort libraries by order dependencies
- Echo inserted -l options to user
-
- Hmmm?
-
- Tony Burzio
- Arete Associates
- San Diego, CA
-