Tue Dec 20 01:46:00 GMT 2005
Jay C. wrote:
> On compiling, it throws the following error.
> cannot find -lgcc_s
Just what it says: the linker cannot find library libgcc_s.a (or libgcc_s.so if
using shared libraries).
In general your compiler can tell you where are the libraries it is using:
$ gcc -print-libgcc-file-name
$ gcc -print-file-name=libgcc.a
$ gcc -print-file-name=libgcc_s.a
The 3rd test did not find libgcc_s.a and the compiler doesn't show a path but in
a way is saying "I'll use it if I find it right here in this directory".
> I have glib, glib2, glib-devel, glib2-devel and any other glib packages
> I could find installed for Cygwin.
If you are cross-compiling those will not work, you need the target libraries
(notice the difference between my libgcc and the one your linker was looking
for: .../i686-pc-cygwin/... vs .../i686-unknown-linux/...).
In other words, your setup is not complete for doing the cross-compilation you
are trying to do.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin