www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/04/09:32:33

From: kagel AT quasar DOT bloomberg DOT com
Date: Mon, 4 Nov 1996 09:13:02 -0500
Message-Id: <9611041413.AA01417@quasar.bloomberg.com >
To: highlander AT redestb DOT es
Cc: djgpp AT delorie DOT com
In-Reply-To: <327bacb4.30207215@news.redestb.es> (highlander@redestb.es)
Subject: Re: non-standard name libs
Reply-To: kagel AT dg1 DOT bloomberg DOT com

   Errors-To: postmaster AT bloomberg DOT com
   From: highlander AT redestb DOT es (HiGhLaNDeR)
   Newsgroups: comp.os.msdos.djgpp
   Date: Sun, 03 Nov 1996 11:11:42 GMT
   Organization: MalaKalaqa
   Lines: 14
   Reply-To: highlander AT redestb DOT es
   Nntp-Posting-Host: 195.76.117.231
   X-Newsreader: Forte Free Agent 1.1/32.230
   Dj-Gateway: from newsgroup comp.os.msdos.djgpp
   Content-Type: text
   Content-Length: 447

   Hi there:

	   I was reading the docs until i couldn't do it more and i
   didn't found how to build a library. I saw something like the "ar"
   program but i'm not sure.

	   Also it's very important for me to have one library with a non
   standard "lib----.a" name, for example i want to link a library called
   "mylib.lib". How i can do this from rhide and from the command line?

I noticed a reply to most of your message so I will not repeat.  I
know of no good reason to name a library anything other than
lib-----.a, however, as long as you are willing to have the entire
contents of your library included in your executable you can use the
non-standard name without the '-l' flag, thus:

	gcc -o myexec mymain.o myobj.o mylib.lib

This should work.

-- 
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com

A proverb is no proverb to you 'till life has illustrated it.  -- John Keats

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019