|
From: Wu Y. <ad...@ne...> - 2005-01-14 09:37:12
|
Good to know that you succeeded at last. However, I still wonder why=20
"pexports -h" did not work for you (I use the same old v0.43). I'll show=20
an example:
testdll.h:
----------------------------------------------
#ifdef BUILD=5FDLL
#define DLLIMPORT =5F=5Fdeclspec(dllexport)
#else
#define DLLIMPORT =5F=5Fdeclspec(dllimport)
#endif
void DLLIMPORT =5F=5Fstdcall test(int, int);
----------------------------------------------
testdll.c:
----------------------------------------------
#define BUILD=5FDLL
#include "testdll.h"
void DLLIMPORT =5F=5Fstdcall test(int i, int j)
{
}
----------------------------------------------
Command to build testdll.dll:
gcc -shared testdll.c -o testdll.dll -Wl,--kill-at
testdll.def resulting from "pexports testdll.dll":
----------------------------------------------
LIBRARY testdll.dll
EXPORTS
test
----------------------------------------------
testdll.def resulting from "pexports -h testdll.h testdll.dll":
----------------------------------------------
LIBRARY testdll.dll
EXPORTS
test@8
----------------------------------------------
Best regards,
Yongwei
P.S. Better specify time in mails in GMT. If I use CST (I will mean China=20
Standard Time), surely many will be confused :-). Luckily (or unluckily?)=20
the Notes client uses ZE8.
--- Original message from Ulrich Alth=F6fer ---
Hello to this list,
my 3. supplement:
Yongwei, thank you very much for your answer given with your eMail at
2005-01-13 22:57. I don't know why, but I didn't get it per eMail, so I
couldn't answer you inline.
You wrote the option -h with the pexports-command may help.=20
I was to superficial. I thought it was the short form for the
--help-option, but it isn't. But anyway, the '@12'-appendix isn't filled
automatically in my case. May be I use an old version (PExperts 0.43).
But when I completed the def-file manually with all the 'number of bytes
in the argument list'-values, then I get success!
I get the gcc compiling and linking WITHOUT these nerved error-messages:
'undefined reference to =5Fimp=5F=5FFT=5F...@nn'!
You give me the right tip!
THANKS AGAIN!
Ulrich Alth=F6fer
|