Creating static libraries using gcc
Scott Sinclair
scott.sinclair@umgeni.co.za
Tue Mar 19 01:03:00 GMT 2002
Hi
I have a large number of related C++ source files which I want to combine
into a static library using gcc 2.95.3-5 with cygwin. Could anyone tell me
which linker options I need to specify to accomplish this ? I have tried to
link the object files using the -shared switch (although I suspect this
produces something similar to a Windows dll ?) and the object code links
cleanly.
However, when I try to build an executable which requires linking with my
library I get the following error--
collect2:ld terminated with signal 11 [Segmentation fault]
Any help will be appreciated as I can't seem to find anything useful in the
documentation yet.
Thanks
Scott
More information about the Gcc-help
mailing list