This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

error: undefined reference to `_WinMain@16'


Hi,

I'm trying to build a project with sha-1 and md5 implementations from http://www.cr0.net:8040/code/crypto/sha1/ (in case it is important information)

and I'm getting the following error:


**** Incremental build of configuration Debug for project Sha1 ****


make -k all
Building file: ../sha1.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -osha1.o ../sha1.c
Finished building: ../sha1.c

Building target: Sha1.exe
Invoking: GCC C Linker
gcc -oSha1.exe ./sha1.o
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o)(.text+0xab): undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
make: *** [Sha1.exe] Error 1
make: Target `all' not remade because of errors.
Build complete for project Sha1


Any idea why is that? It's the first time is happening as far as I remember..

thanks,

fbm




-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]