This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: making lib files?


    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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]