From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3CBD5349.B870917C@strakt.com> From: Boyd Roberts MIME-Version: 1.0 To: 9fans@cse.psu.edu Subject: Re: [9fans] Help! Compiling sam on Linux running IceWM References: <50ecc828.0204120652.62d86f2e@posting.google.com>, <3CBBF70C.87EFA1EE@strakt.com> <3CBD0981.5732BD3F@null.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 17 Apr 2002 12:49:45 +0200 Topicbox-Message-UUID: 78e93298-eaca-11e9-9e20-41e7f4b1d025 "Douglas A. Gwyn" wrote: > > Boyd Roberts wrote: > > > > /usr/X11R6/lib/libSM.a /usr/X11R6/lib/libICE.a > > I did a quick nm, before my first post, and that junk you need > > is in the last two. Give me the Plan 9 C compiler/loader anyday. > > How would that help if one omitted the libraries? 1) I did the nm to be sure, before posting [on linux]. 2) #pragma lib removes the need for specifying libraries on Plan 9: http://plan9.bell-labs.com/sys/doc/comp.html The loader is an integral part of the compilation process. Each library header file contains a #pragma that tells the loader the name of the associated archive; it is not necessary to tell the loader which libraries a program uses.