Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <000c01c05b19$bc9f9960$32b40280@sp.cs.cmu.edu> From: Anthony Gallagher To: cygwin References: <20001128123520 DOT A183 AT dothill DOT com> <20001130162749 DOT F299 AT dothill DOT com> Subject: Please help with making DLL Date: Thu, 30 Nov 2000 17:06:05 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Hi I am having great trouble making a DLL. The compiler complains that there is an undefined reference to WinMain AT 16. I do not understand why does it want a WinMain when I am trying to create a DLL, and do not know how to get around this problem. My DOS command is the following: gcc -s -Wl,--base-file,FaceDetectDLL.base -o FaceDetectDLL.dll FaceDetectDLL.o libfacedetect.a -L..\Misc_Object_Code\adalib\ -L..Misc_Object_Code\Win32Ada ..\Ada_libraries\libgnarl.a ..Ada_libraries\libgnat.a -Wl,-e,-DllMain AT 12 The error message is: D:\GNAT\lib/libmingw32.a(main.o)(.text+0x7f):main.c: undefined reference to 'WinMain AT 16' Does anybody know what this could mean? TIA, Anthony -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com