From: Jim S. <ni...@ab...> - 2000-11-07 01:07:23
|
Danny Smith wrote: > > --- Jim Sculley <ni...@ab...> wrote: > >I cannot figure out how to get the standard call aliases > > into > > the DLL. Using dllwrap, this was as simple as using the > > '--add-stdcall-alias' option. > > > > Is there an easy way to do this with the new '-shared' functionality? > > > > > > gcc -shared -Wl,--add-stdcall-alias,... I tried that before posting my message. It didn't work. It seems to ignore --add-stdcall-alias. > > > Better still, is there an easy way to suppress the '@xx' suffix on the > > functions so that the stdcall aliases aren't needed at all? > > Maybe not easy, but safe - use a def file: > EXPORTS > foo=foo@n Definitely not easy. I'm porting an existing COM API to Java, with about 100 classes and several thousand functions. I was hoping to avoid creating the .def file. I'll probably continue using dlltool until I have it all done, and then write a little program to create a proper .def file. Jim S. |