🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Dik T. Winter Sat, 19 Jan 1991 01:54
Standard behaviour when searching libraries
#713
Author: Dik T. Winter
Date: Sat, 19 Jan 1991 01:54
19 lines
1218 bytes
Submitted-by: dik@cwi.nl (Dik T. Winter)

As I do not have access to any of the current or forthcoming standards, I ask
this question here.  Is it defined anywhere what the behaviour of the loader
is in the load step with respect to libraries?  Especially is there any
difference between a full path specification of the library or a short hand
specification using -l?  I ask because I encountered a system that showed a
marked difference between:
	cc foo.c /usr/lib/libm.a
and:
	cc foo.c -lm
In the first case the complete library is linked into the object module,
in the second only the routines needed are linked in.
Does any standard say something about this (SVID, Posix)?
--
dik t. winter, cwi, amsterdam, nederland
dik@cwi.nl

Volume-Number: Volume 22, Number 77
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads