This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: undefined ELF header when porting .so file from cygwin to linux
- From: Shankar Unni <shankar at cotagesoft dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 05 Nov 2002 09:27:03 -0800
- Subject: Re: undefined ELF header when porting .so file from cygwin to linux
- References: <BADF3C947A1BD54FBA75C70C241B0B9E763017@ex02.idirect.net> <001201c2852e$29487740$080a0a0a@mon>
On 11/5/2002 4:47 PM, Alfred Lam wrote:
> I need the equivalent .so for linux, which I have obtained in
> cygwin with:
g++ *.o scard.lib -o libscard.so. Now I'm trying to use it in Red Hat Linux,
[Boggle!]
You can't do that. Cygwin is not binary compatible with Linux - it's
binary compatible with Windows. You cannot move a cygwin-compiled binary
(executable or shared library) to Linux and use it there.
You have to either compile it on Linux itself, or specifically compile
it with a cross-compiler that creates Linux executables (which won't run
on Windows, then).
--
Shankar.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/