cygwin hiba linkelesnel

Fórumok

Hali!
Cygwin fordítás Ok, de a linker aszongya:
undefinied reference to '_WinMain@16'
Mi lehet az oka?

Hozzászólások

Mi lenne, ha kimásolnád a képernyő tartalmát és beszúrnád ide?

Íme:
begyu@begyu ~/pro
$ make
gcc -O2 -O3 -Wall -fomit-frame-pointer -fno-strict-aliasing -Wno-char-subscripts
-DGYMOD -o calc.o ./calc.c
./calc.c: In function `fun_prec':
./calc.c:200: warning: implicit declaration of function `strcat'
./calc.c: In function `error':
./calc.c:293: warning: implicit declaration of function `strcpy'
./calc.c: In function `My_strndup':
./calc.c:303: warning: implicit declaration of function `memmove'
./calc.c: In function `findvar':
./calc.c:348: warning: implicit declaration of function `strncasecmp'
./calc.c:352: warning: implicit declaration of function `strlen'
./calc.c: In function `readnum':
./calc.c:399: warning: implicit declaration of function `strncmp'
./calc.c:529: warning: implicit declaration of function `strdup'
./calc.c: In function `evalini':
./calc.c:726: warning: implicit declaration of function `index'
/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: *** [calc.o] Error 1

begyu@begyu ~/pro
$

Nem fog különösebb bajt okozni, ha teszel bele egy olyat, hogy:

#include <string.h>