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]

thanks - DLL call works. FAQ for others?


Hello again,

thanks to patient help from those on the list, I've solved my problem. For
future ref:

Function prototype:
  long (* __cdecl BULLET)(void *data);

DEF file testexp.def:
EXPORTS
BULLET@4

commands
--------
to buiild import library:
dlltool --dllname TESTXB.DLL --def testexp.def --output-lib libtestxb.a -k

to compile and link the .c file containing the call to BULLET():
gcc -c any2.c -DPLATFORM=ON_WIN32
gcc -o any2.exe any2.o -L. -ltestxb

Given how simple this is, surely it's in a FAQ somewhere? What did I
overlook? If it's not, are there any plans to put together documentation
for newdies like me?

Thanks,
Regards,
Tom.


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