delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/26/22:08:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Thu, 26 Aug 2004 19:08:26 -0700 (PDT)
Message-Id: <200408270208.i7R28QMk005153@andrena.ucdavis.edu>
To: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>,
Cygwin List <cygwin AT cygwin DOT com>
Subject: Re: convert .lib to .a
From: "Yu-Cheng Chou" <cycchou AT ucdavis DOT edu>
X-Errors-To: cycchou AT magenta DOT ucdavis DOT edu
X-Originating-IP: [169.237.108.56]
X-User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
X-Scanned-By: MIMEDefang 2.41
X-IsSubscribed: yes

Hi, Larry:

I have two c-callable static libs which are created by vc, but the source 
codes are not available.
I need these libs to create a shared library using gcc under cygwin.

Command line:

gcc -shared -o libmpi.dl 
mpi_chdl.o ../../src/lib/libmpi.a ../../src/lib/liblam.a ../../src/lib/chsd
k.lib ../../src/lib/ch.lib

Error message:

Warning: .drectve '/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" /EXPORT:___b
uiltin_Ch_VaArg ' unrecognized
Cannot export .idata$4: symbol not found
Cannot export .idata$5: symbol not found
Cannot export .idata$6: symbol not found
Cannot export .text: symbol not found
Cannot export &#8962;ch_NULL_THUNK_DATA: symbol not found
collect2: ld returned 1 exit status
make: *** [libmpi.dl] Error 1

Have any idea to fix this problem?

Thanks 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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