From: Filip N. <xn...@vo...> - 2003-08-01 17:06:28
|
> You first need to export foo then alias it to bar. > > EXPORTS > foo > bar = foo > > Earnie. Thanks Earnie for your response, but it doesn't work. Here's my concrete example: --dxtrans.def LIBRARY dxtrans.dll EXPORTS ?DXConstOverArray@@YGXPAVDXPMSAMPLE@@ABV1@K@Z _Z16DXConstOverArrayP10DXPMSAMPLERKS_m@12=?DXConstOverArray@@YGXPAVDXPMSAMPL E@@ABV1@K@Z ?DXConstUnderArray@@YGXPAVDXPMSAMPLE@@ABV1@K@Z _Z17DXConstUnderArrayP10DXPMSAMPLERKS_m@12=?DXConstUnderArray@@YGXPAVDXPMSAM PLE@@ABV1@K@Z ?DXDitherArray@@YGXPBUDXDITHERDESC@@@Z _Z13DXDitherArrayPK12DXDITHERDESC@4=?DXDitherArray@@YGXPBUDXDITHERDESC@@@Z ?DXLinearInterpolateArray@@YGXPBVDXBASESAMPLE@@PAUDXLIMAPINFO@@PAV1@K@Z _Z24DXLinearInterpolateArrayPK12DXBASESAMPLEP11DXLIMAPINFOPS_m@16=?DXLinearI nterpolateArray@@YGXPBVDXBASESAMPLE@@PAUDXLIMAPINFO@@PAV1@K@Z ?DXOverArray@@YGXPAVDXPMSAMPLE@@PBV1@K@Z _Z11DXOverArrayP10DXPMSAMPLEPKS_m@12=?DXOverArray@@YGXPAVDXPMSAMPLE@@PBV1@K@ Z ?DXOverArray@@YGXPAVDXPMSAMPLE@@PBV1@K@Z _Z14DXOverArrayMMXP10DXPMSAMPLEPKS_m@12=?DXOverArray@@YGXPAVDXPMSAMPLE@@PBV1 @K@Z --test.cpp #include <windows.h> struct DXPMSAMPLE {}; __declspec(dllimport) __stdcall void DXConstOverArray(DXPMSAMPLE *, const DXPMSAMPLE &, ULONG); int main() { DXPMSAMPLE x; DXConstOverArray(&x, x, 0); } --mak.bat dlltool -l libdxtrans.a -d dxtrans.def g++ -O3 -s test.cpp -o test.exe libdxtrans.a When I run "test.exe" it says it can't find "_Z16DXConstOverArrayP10DXPMSAMPLERKS_m@12" in dxtrans.dll, but it shoul search for ?DXConstOverArray@@YGXPAVDXPMSAMPLE@@ABV1@K@Z. Or am I missing something? FN |