delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/26/14:17:07

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
From: Roberto Cavada <cavada AT irst DOT itc DOT it>
Organization: ITC-irst
To: cygwin AT cygwin DOT com
Subject: Cygwin DLLs and MSVC
Date: Fri, 26 Jul 2002 20:16:53 +0200
Cc: Roberto Cavada <cavada AT itc DOT it>
MIME-Version: 1.0
Message-Id: <200207262016.54158.cavada@irst.itc.it>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g6QIH6j01731

Hi all, 
  I compiled (under cygwin) a c source file which contains a set of 
useful functions. 
Suppose the c source file cannot be easly compiled by using a native 
Win32 compiler. The idea here is to generate a (cygwin) dll which 
users might link from within a native C compiler (Visual Studio, for 
example). 

gcc -c test.c
gcc -shared test.o -o test.dll

Now I'd like to be able to use the dll 'test.dll' from within Visual 
Studio. Is it possible? 

I generated a file test.lib (and of course - a test.dll file) by using 
the 'dlltool' tool, and then I imported the test.lib file from within  
MSVC. I supposed the test.lib is a simple signature of any symbol 
test.dll can export, and I actually successfully compiled and linked 
it with a client code, but execution failed into a segfault. 

I'm wondering if this is the right way to have a dll generated with 
gcc working within MSVC. 
Thank you in advance, 
  Roberto Cavada

--
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