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

Re: function pointers & DLL's


On Sun, 6 May 2001, Alan Hourihane wrote:

> Everything works fine. But what I'm trying to do is find a way at the linker
> stage that negates me having to make these __declspec statements. Is there
> any way this is possible ?

For VC++ (at least) __declspec(dllimport) is purely optional and never
required. The only this they do is to enable the compiler to skip an
indirection in the jump and generate a slightly more efficient jump.

/Jesper

-------------------------------------------------------------------------
Jesper Eskilson                                         jojo@virtutech.se
Virtutech                                         http://www.virtutech.se
-------------------------------------------------------------------------


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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