home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5631 < prev    next >
Encoding:
Internet Message Format  |  1992-08-15  |  1.2 KB

  1. Path: sparky!uunet!sun-barr!sh.wide!wnoc-tyo-news!lkbreth!sgtp!shin
  2. From: shin@sgtp.apple.juice.or.jp (Sugou Shinichirou)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: What command do I use to make a ".a" file?
  5. Message-ID: <SHIN.92Aug15174527@sgtp.sgtp.apple.juice.or.jp>
  6. Date: 15 Aug 92 08:45:27 GMT
  7. References: <1992Aug13.175707.12931@aio.jsc.nasa.gov>
  8. Sender: shin@sgtp.apple.juice.or.jp
  9. Organization: SG Total Planning, Japan
  10. Lines: 23
  11. In-reply-to: bill@epnxt.jsc.nasa.gov's message of 14 Aug 92 02:57:07 JST
  12.  
  13. In article <1992Aug13.175707.12931@aio.jsc.nasa.gov> bill@epnxt.jsc.nasa.gov writes:
  14.    I wish to make a library file (somefile.a) encompassing a palette I just  
  15.    designed.  What command do I use?  I could not find anything mentioned in  
  16.    the QA section on this topic.
  17.  
  18. Because your library file includes a palette data, you have to use 'ld'
  19. with '-r' option instead of 'ar' command. If you create a library with
  20. 'ar' command, the message something like 'class not loaded' will appear
  21. when app runs.
  22.  
  23. Suppose you create 'bar.a' library from 'foo{1,2}.m' files:
  24.  
  25.         cc -c foo1.m -o foo1.o
  26.         cc -c foo2.m -o foo2.o
  27.         ld -r foo1.o foo2.o -o bar.a
  28.  
  29. --
  30. Shin'ichirou Sugou
  31.  
  32. shin@apple.juice.or.jp (NeXTmail acceptable)
  33.  
  34.  
  35.                    
  36.