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:08:51 +0100
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Al,

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]