function exported from DLL compiled under Cygwin

Dave Korn dk@artimi.com
Mon May 17 17:39:00 GMT 2004


> -----Original Message-----
> From: cygwin-owner On Behalf Of Yu, Ted
> Sent: 17 May 2004 17:47

> I exported the following function from DLL produced by Cygwin:
> extern "C" int ted( float *data, int rows, int cols )
> {
> 	return cols;
> }
> When I called this function from MSVC, I got exception.

  Isn't this most likely to be caused by msvc and gcc having a different
idea about whether the function is stdcall or cdecl, rather than any kind of
runtime initialisation?  Such a simple function ought to work without any
problem.  (This does assume that you were indeed getting the exception at
the point you call the function, rather than at the point you LoadLibrary
the dll; that would indicate a different problem).


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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



More information about the Cygwin mailing list