buggy entry point while making dll
DJ Delorie
dj@delorie.com
Wed Jul 18 09:09:00 GMT 2001
> BUT this doesn't work, the entry point will bad:
>
> gcc -shared --dll mydll.o --entry _DllMain@12 -Wl,--subsystem,windows -o
> mydll-bad.dll
The --subsystem option changes the default entry point. Try giving it
before the --entry option. If that doesn't work, try renaming your
entry point to WinMainCRTStartup, which is the default for the windows
subsystem.
More information about the Binutils
mailing list