This is the mail archive of the cygwin@sourceware.cygnus.com 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]

How to import DLL functions?


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".


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