gnucap-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnucap-devel] mingw DLL problem


From: Holger Vogt
Subject: Re: [Gnucap-devel] mingw DLL problem
Date: Sat, 03 Nov 2007 19:40:12 +0100
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Al,

what I have just stated (see blelow) does not work for MINGW (but for MS http://msdn2.microsoft.com/en-us/library/z4zxe9k8(VS.80).aspx). Module definition files in MINGW may be used for describing foreign dlls (http://www.mingw.org/MinGWiki/index.php/CreateImportLibraries)

Regards

Holger



another option for creating the dll:

// test_dll.cpp
int bar()
{
return (2);
}

The file now has no #include of an export statement.

You need however, a module definition file TestDLL.def:

LIBRARY TestDLL
DESCRIPTION "Simple DLL"
EXPORTS
        bar

This file is now linked in by the statement in the makefile:

##      $(CC) -shared *.o $(CFLAGS) -o $(DLL) --driver-name=g++ $(LIBDIR)
-Wl,--out-implib,lib$(MODULE).a 2>&1 | c++filt

        $(CC) -shared *.o --def $(MODULE).def $(CFLAGS) -o $(DLL)
--driver-name=g++ $(LIBDIR) -Wl,--out-implib,lib$(MODULE).a 2>&1 | c++filt


Regards

Holger






reply via email to

[Prev in Thread] Current Thread [Next in Thread]