www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/28/18:36:04

Date: Tue, 28 Nov 1995 14:01:28 -0800
From: Sam Vincent <svincent AT cs DOT sonoma DOT edu>
To: djgpp AT sun DOT soe DOT clarkson DOT edu, matt DOT emmett AT bbs DOT logicnet DOT com
Subject: Re: Making libraries

.lib files are what dos compilers use..  djgpp uses .a for libraries..

You can make a .a using the "ar" program and "ranlib" program...
Anyway, #include'ing something does not automatically link in
some library for you in the linking stage...  it just
copies everything in that .h file at the point where the #include
directive is, as if it was actually pasted in that .c file...

linking must be done by you with a -lmyown for linking in libmyown.a... etc.

-Sam

- Raw text -


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