This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MSVC-dll under cygwin

On Thu, Dec 02, 2004 at 04:30:56PM +0100, Mikael ?sberg wrote:
Hello, I was under the impression that using a Cygwin-compiled DLL
under MSVC was extremely difficult, if not impossible, but using a
MSVC-compiled DLL with programs compiled under Cygwin is possible?  I
have test program that first calls LoadLibrary() and then for each
function in the DLL it wants to call I call GetProcAddress().  However,
when I try to call any function the program segfaults (the function
pointers are not NULL).  The same test program works if compiled using
MSVC.  Am I mistaken that this should work or is there an error

Since cygwin itself uses all sorts of non-cygwin dlls, it is a safe assumption that it must be able to use non-cygwin dlls.

However, if you are using stdio from msvcrt, you may run into problems.


Thanks for the quick reply. I may have found the problem (will test later). In one of the functions, a parameter was declared to be const but it was declared as non-const in the definition. Seems like a mistake that can cause all sorts of weird problems.

/ Mikael

-- Unsubscribe info: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]