From: <mi...@ca...> - 2003-08-03 08:14:26
|
What is the alternative to dlltool then? /Anders Lindén ----- Original Message ----- From: "Paul G." <pga...@at...> To: <min...@li...> Sent: Sunday, August 03, 2003 2:08 AM Subject: Re: [Mingw-users] dlltool, need help > Note: I don't use dlltool if I can at all avoid it. > > Have you tried: > > EXPORTS > foo > bar > bar = foo > > ? > > It may try to doubly define bar, but my gut feeling is that ld will compensate when you link at your g++... line. > > It might also be helpful if you could let us know what your quickview output is for dxtrans.dll. There is every > possibility that you are getting a data collision between dxtrans.dll and your .a file (libdxtrans). > > > Paul G. > > On 1 Aug 2003 at 18:47, Filip Navara wrote: > > > > 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@@YGXPAVDXP > > MSAMPL E@@ABV1@K@Z ?DXConstUnderArray@@YGXPAVDXPMSAMPLE@@ABV1@K@Z > > _Z17DXConstUnderArrayP10DXPMSAMPLERKS_m@12=?DXConstUnderArray@@YGXPAVD > > XPMSAM PLE@@ABV1@K@Z ?DXDitherArray@@YGXPBUDXDITHERDESC@@@Z > > _Z13DXDitherArrayPK12DXDITHERDESC@4=?DXDitherArray@@YGXPBUDXDITHERDESC > > @@@Z > > ?DXLinearInterpolateArray@@YGXPBVDXBASESAMPLE@@PAUDXLIMAPINFO@@PAV1@K@ > > Z > > _Z24DXLinearInterpolateArrayPK12DXBASESAMPLEP11DXLIMAPINFOPS_m@16=?DXL > > inearI nterpolateArray@@YGXPBVDXBASESAMPLE@@PAUDXLIMAPINFO@@PAV1@K@Z > > ?DXOverArray@@YGXPAVDXPMSAMPLE@@PBV1@K@Z > > _Z11DXOverArrayP10DXPMSAMPLEPKS_m@12=?DXOverArray@@YGXPAVDXPMSAMPLE@@P > > BV1@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 > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_ > > 01/01 _______________________________________________ MinGW-users > > mailing list Min...@li... > > > > You may change your MinGW Account Options or unsubscribe at: > > https://lists.sourceforge.net/lists/listinfo/mingw-users > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users |