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]

function pointers & DLL's


Hi,

Wonder if someone can shed some light or offer an alternative way of
doing things....Here goes...

I've got a DLL which uses about function pointers of the form....

void (*func1)();
void (*func2)();

I can create the DLL and export them and I get the normal references of

_func1
_func2
_imp__func1
_imp__func2

So, now in another DLL I've got to do this

__declspec(dllimport) void (*func1)();
__declspec(dllimport) void (*func2)();

To get the function pointers into the correct places.

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 ?

Thanks.

Alan.

--
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]