delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/05/23:31:45

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 5 May 2004 23:31:20 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Ted Yu <ted_yu AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Cygwin runtime
In-Reply-To: <20040505202556.45619.qmail@web12106.mail.yahoo.com>
Message-ID: <Pine.GSO.4.56.0405052330220.1835@slinky.cs.nyu.edu>
References: <20040505202556 DOT 45619 DOT qmail AT web12106 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Wed, 5 May 2004, Ted Yu wrote:

> Hi,
> This is related to Cygwin DLL posts.
> If I stick to Cygwin runtime, I should be able to call
> DLL generated by Cygwin from MSVC project.
> For the moment, I encounter exception calling into
> this DLL:
> 000f77d0()
> fft_general_0(float * 0x02e60040, int 256, int 512,
> int 1) line 163 + 17 bytes
> bpcorr(const unsigned char * 0x02cbdcf8, int 240, int
> 320, int 0, int 0, int 240, int 320, const unsigned
> char * 0x02cd0940, int -110, int 110, int -110, int
> 110, int 4, int 4, int 2, float * 0x0223d0e0, float *
> 0x0223d0a0, float * 0x0223d27c, float * 0x0223d060)
> line 1121 + 28 bytes
>
> I tried to initialize _impure_ptr in entry function.
> extern "C" int __stdcall fftEntry(HINSTANCE h, unsigned long a, void * b)
                 ^^^^^^^^^
> {
>         _impure_ptr = __imp_reent_data;
>         return 1;
> }
> But ld gave me this:
> ld: warning: cannot find entry symbol fftEntry AT 12;
> defaulting to 10001000
>
> R/

Make sure the function is prototyped correctly where it's called.
Otherwise the names won't match.  BTW, this is straight C stuff, not
Cygwin-specific.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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