On 6 Nov 2000, at 20:05, the Illustrious Jim Sculley wrote:
> Danny Smith wrote:
> > --- Jim Sculley <niceguy@...> 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.
Try using -dll instead of -shared for gcc. As I recall, the
info in the gcc command line is passed, more or less verbatim,
to the ld process. The ld process itself can't deal with both --
dll and -shared. ld requires either one or the other. gcc
should provide -mdll as well.
eg: gcc -mdll --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@...
> 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.
> MinGW-users mailing list
> You may change your MinGW Account Options at:
Nothing real can be threatened.
Nothing unreal exists.