Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: "Dylan Cuthbert" Newsgroups: gmane.os.cygwin Subject: Re: Cygwin DLLs and MSVC Date: Sat, 27 Jul 2002 15:22:02 +0900 Lines: 50 Message-ID: References: <200207262016 DOT 54158 DOT cavada AT irst DOT itc DOT it> NNTP-Posting-Host: pppa237.kyoto-ip.dti.ne.jp Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1027750793 23363 210.159.246.237 (27 Jul 2002 06:19:53 GMT) X-Complaints-To: usenet AT main DOT gmane DOT org NNTP-Posting-Date: Sat, 27 Jul 2002 06:19:53 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 I've had a similar problem in the past - it seems to segfault when initialising the cygwin dll. I was writing a dll using cygwin (that in turn loads and uses cygwin1.dll), that dll was then used as a plugin for Maya. It seg-faulted and after a few days of fiddling about there wasn't enough time to pursue it any further so we used Visual Studio (ach.. spit) for the plugin. Now MinGW seems to be working for gcc 3.1.1 I might try again. Regards --------------------------------- Q-Games, Dylan Cuthbert. http://www.q-games.com "Roberto Cavada" wrote in message news:200207262016 DOT 54158 DOT cavada AT irst DOT itc DOT it... 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/ -- 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/