🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3285

Re: Libraries specified in source?

#3285
From: Steve Clamage
Date: Fri, 22 Jan 1993 20:10
28 lines
1392 bytes
ray@astro.ocis.temple.edu (Ray Lauff) writes:

>... but why not just have a line in the main program such as

>#library "/lib/libc.a"

>which would then alert the linker that that library will be 
>required.  ...

>It seems to me this would be a reasonable extension to C, since
>just about every c program requires some type of library that's
>not automagically provided.  Does this make sense to anyone 
>else?  Would it not be a consideration for the language?

If you mean to propose adding this to the Standard, I doubt it would
happen.  This assumes that implementations use a linker and libraries,
neither of which is required.

The C Standard specifies what constitues a legal program and the
meaning of legal programs.

There has to be some way to get from source code to an execution
of the program, and the implementation has to tell you how to do that.
Whether there is a compiler or a linker or libraries involved is a
subject separate from the C language.
-- 

Steve Clamage, TauMetric Corp, steve@taumet.com
Technical Details
Message-ID: <1993Jan22.201020.13541@taumet.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!taumet!steve
References: <1993Jan21.182949.29796@cronkite.ocis.temple.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!sparky!uunet!taumet!steve
From: steve@taumet.com (Steve Clamage)
Subject: Re: Libraries specified in source?
Message-ID: <1993Jan22.201020.13541@taumet.com>
Organization: TauMetric Corporation
References: <1993Jan21.182949.29796@cronkite.ocis.temple.edu>
Date: Fri, 22 Jan 1993 20:10:20 GMT
Lines: 28