This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: buggy entry point while making dll
- To: nm127 at hszk dot bme dot hu
- Subject: Re: buggy entry point while making dll
- From: DJ Delorie <dj at delorie dot com>
- Date: Tue, 17 Jul 2001 20:26:24 -0400
- CC: binutils at sources dot redhat dot com
- References: <3B54C2E5.74C6B5CD@hszk.bme.hu>
The problem is this:
gcc -shared --dll mydll.o --entry DllMain -o mydll.dll
Your entry point should be DllMain@12 or _DllMain@12 (I don't remember
if gcc adds the underscore for you or not).