This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Please help with making DLL
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