Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <000c01c05b19$bc9f9960$32b40280@sp.cs.cmu.edu>
From: Anthony Gallagher <anthonyg+@cs.cmu.edu>
To: cygwin <cygwin@sourceware.cygnus.com>
References: <20001128123520.A183@dothill.com> <VA.0000057f.00501876@thesoftwaresource.com> <20001130162749.F299@dothill.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@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@12
The error message is:
D:\GNAT\lib/libmingw32.a(main.o)(.text+0x7f):main.c: undefined reference to
'WinMain@16'
Does anybody know what this could mean?

TIA,

Anthony


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

