This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
How to import DLL functions?
- To: <gnu-win32 at cygnus dot com>
- Subject: How to import DLL functions?
- From: "Jon Trauntvein" <jon at campbellsci dot com>
- Date: Wed, 5 Nov 1997 11:57:27 -0700
I am trying to build an application using g++ that calls functions from a
DLL generated with Visual C++. I have tried using the following type of
declaration only to have the compiler complain about the syntax:
void __declspec(dllimport) __stdcall foo();
After scanning through the Microsoft documentation, I have learned that the
dllimport spec is a Microsoft specific extension. The question that I have
is, what is the appropriate extension to use with the GNU compiler?
Regards,
Jon Trauntvein
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".