Thread View: comp.sys.next.programmer
3 messages
3 total messages
Started by bill
Thu, 13 Aug 1992 17:57
What command do I use to make a ".a" file?
Author: bill
Date: Thu, 13 Aug 1992 17:57
Date: Thu, 13 Aug 1992 17:57
7 lines
640 bytes
640 bytes
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. Thanks in advance. Bill
Re: What command do I use to make a ".a" file?
Author: Zenon Fortuna
Date: Fri, 14 Aug 1992 12:56
Date: Fri, 14 Aug 1992 12:56
27 lines
1029 bytes
1029 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. > >Thanks in advance. > > Bill Read the manual pages for ar(1). One of the options may look like below: ar qv name.a obj1.o obj2.o In addition to "ar" you may need to use the ranlib(1) for random access to the library, for example: ranlib name.a and lorder(1) to improve the order of the objects in the library. -Z.
Re: What command do I use to make a ".a" file?
Author: 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)
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