delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/05/12:29:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Shankar Unni <shankar AT cotagesoft DOT com>
Subject: Re: undefined ELF header when porting .so file from cygwin to linux
Date: Tue, 05 Nov 2002 09:27:03 -0800
Lines: 17
Message-ID: <3DC7FF67.6090302@cotagesoft.com>
References: <BADF3C947A1BD54FBA75C70C241B0B9E763017 AT ex02 DOT idirect DOT net> <001201c2852e$29487740$080a0a0a AT mon>
NNTP-Posting-Host: adsl-64-165-207-58.dsl.snfc21.pacbell.net
Mime-Version: 1.0
X-Trace: main.gmane.org 1036517216 2665 64.165.207.58 (5 Nov 2002 17:26:56 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Tue, 5 Nov 2002 17:26:56 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (Compact)
X-Accept-Language: en-us, en

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019