delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/03/11:37: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
Message-Id: <4.3.1.2.20020503113424.0250fb40@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
Date: Fri, 03 May 2002 11:34:41 -0400
To: "Rick Hellicar (QMP)" <Rick DOT Hellicar AT eml DOT ericsson DOT se>,
"'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: RE: Compiling/running code that used to work okay!
In-Reply-To: <BBB80FB03D54D51192DA0002A56B0248CA81C3@eukbant103.uk.eu.er
icsson.se>
Mime-Version: 1.0

At 11:07 AM 5/3/2002, Rick Hellicar (QMP) wrote:
>Larry Hall wrote:
> > At 10:14 AM 5/2/2002, Rick Hellicar (QMP) wrote:
> >> Hi all,
> >>
> >> I'm modifying some old code I last compiled in October 2000. The code uses a 3rd-party DLL, which
> >> comes with an import library. It used to link without fuss against that import library and run perfectly.
> >>
> >> I've moved on to cygwin_1.3.10, gcc version 2.95.3-5, and I now get a host of "undefined references". My code
> >> is (currently) the same as before, and so are the DLL and its import library. Any idea why it used to compile/link
> >> but doesn't anymore?
>
>
> > Not with the given level of details, no.
>
>Thanks for taking the time to reply, Larry.
>I *finally* traced the problem; the include files associated
>with the DLL add the two attributes "cdecl" and "stdcall" to
>the function prototypes, but only if WIN32 or __WIN32__
>are defined.  I modified the .h file to test for __CYGWIN__
>as well, and now everything's hunky dory.


Great!



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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