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]

making lib files?


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]