This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: making lib files?
- To: help-gcc at gnu dot org
- Subject: Re: making lib files?
- From: Joe Durusau <durusau at delphi dot com>
- Date: Mon, 23 Aug 1999 07:13:48 -0400
- Newsgroups: gnu.gcc.help
- Organization: Lockheed Martin Corporation
- References: <7piteh$2ih$1@nntp6.atl.mindspring.net>
- Xref: wodc7nx0 gnu.gcc.help:658
g++ -c will get the object file. You don't specify a platform, and shared
libs
(if that's the kind you mean) are only supported on certain platforms. You best
bet is probably to get the gcc source and look in the documentation that comes
wit hit to see exactly what you need to do for your system.
Speaking only for myself,
Joe Durusau
Pina Colada dude wrote:
> I have a source file containing a c++ class implementation that I want to
> convert into a reusable library. I am trying to generate the .o object file
> and then convert it to the .lib file. Any ideas on how this can be done ?
>
> Whenever I try to compile the file I get a function "main" was not defined
> even if I put an "extern void main(void)" into the file ! I am using GCC
> v2.81
>
> TIA,
> PCD