www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/11/10/09:37:33

Date: Wed, 10 Nov 93 09:27:11 -0500
From: DJ Delorie <dj AT ctron DOT com>
To: fb33 AT rummelplatz DOT uni-mannheim DOT de
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: -lgpl

> I downloaded the basic files to work with djgpp and have a little trouble 
> with the libraries. I always have to compile programs with
>  gcc <name> -lgpl -lm

I purposely left -lgpl out of the default link lines because libgpl.a
contains all the GPL-protected code in it.  Thus, your application
won't accidentally become GPL - you have to manually tell it to use
the GPL code.  Note that all the C++ libraries are GPL.

> I found an ASCII-File called "specs" maybe there"s something wrong with it?

No, the specs file is just fine.

> Maybe somebody can explain to me which library contains object-code for C 
> ( or C++) sources? E.g. I have a library libm and a library libm_p. Must 
> I use libm_p to compile C++ sources?

The _p files are for using the profiler (gcc -pg).  All the C++ class
routines are in libgpl.a. (the builtins, like new and delete, are in
libc.a)


- Raw text -


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