Article View: comp.sys.next.programmer
Article #1163Re: What command do I use to make a ".a" file?
From: Sugou Shinichirou
Date: Sat, 15 Aug 1992 08:45
Date: Sat, 15 Aug 1992 08:45
23 lines
1299 bytes
1299 bytes
In article <1992Aug13.175707.12931@aio.jsc.nasa.gov> bill@epnxt.jsc.nasa.gov writes:
I wish to make a library file (somefile.a) encompassing a palette I just
designed. What command do I use? I could not find anything mentioned in
the QA section on this topic.
Because your library file includes a palette data, you have to use 'ld'
with '-r' option instead of 'ar' command. If you create a library with
'ar' command, the message something like 'class not loaded' will appear
when app runs.
Suppose you create 'bar.a' library from 'foo{1,2}.m' files:
cc -c foo1.m -o foo1.o
cc -c foo2.m -o foo2.o
ld -r foo1.o foo2.o -o bar.a
--
Shin'ichirou Sugou
shin@apple.juice.or.jp (NeXTmail acceptable)
Technical Details
Message-ID:
<SHIN.92Aug15174527@sgtp.sgtp.apple.juice.or.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!sh.wide!wnoc-tyo-news!lkbreth!sgtp!shinReferences:
<1992Aug13.175707.12931@aio.jsc.nasa.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!sh.wide!wnoc-tyo-news!lkbreth!sgtp!shin From: shin@sgtp.apple.juice.or.jp (Sugou Shinichirou) Newsgroups: comp.sys.next.programmer Subject: Re: What command do I use to make a ".a" file? Message-ID: <SHIN.92Aug15174527@sgtp.sgtp.apple.juice.or.jp> Date: 15 Aug 92 08:45:27 GMT References: <1992Aug13.175707.12931@aio.jsc.nasa.gov> Sender: shin@sgtp.apple.juice.or.jp Organization: SG Total Planning, Japan Lines: 23 In-reply-to: bill@epnxt.jsc.nasa.gov's message of 14 Aug 92 02:57:07 JST