Błąd podczas kompilacji wgeta dla Windows.
Ostatnio zmodyfikowano 2016-04-10 19:13
mrjase_111 Temat założony przez niniejszego użytkownika |
Błąd podczas kompilacji wgeta dla Windows. » 2016-04-10 19:13:49 Witam, potrzebowałem lekko przerobić i skompilować wget dla Windows żeby się czegoś nauczyć za pomocą MinGW, lecz nie działa. Zamieszczam log: [spoiler] gcc -DWINDOWS -DHAVE_CONFIG_H -O3 -Wall -I. -c -o http.o http.c In file included from wget.h:101:0, from http.c:32: sysdep.h:65:23: error: two or more data types in declaration specifiers typedef unsigned char _Bool; ^ sysdep.h:65:1: warning: useless type name in empty declaration typedef unsigned char _Bool; ^ In file included from wget.h:101:0, from http.c:32: sysdep.h:203:3: error: #error "Cannot determine a 32-bit unsigned integer type" #error "Cannot determine a 32-bit unsigned integer type" ^ sysdep.h:211:23: error: conflicting types for 'uintptr_t' typedef unsigned long uintptr_t; ^ In file included from c:\mingw\lib\gcc\mingw32\4.9.3\include\stdint.h:9:0, from c:\mingw\include\process.h:18, from mswindows.h:70, from sysdep.h:53, from wget.h:101, from http.c:32: c:\mingw\include\stdint.h:75:24: note: previous declaration of 'uintptr_t' was here typedef unsigned int uintptr_t; ^ In file included from wget.h:101:0, from http.c:32: sysdep.h:216:14: error: conflicting types for 'intptr_t' typedef long intptr_t; ^ In file included from mswindows.h:67:0, from sysdep.h:53, from wget.h:101, from http.c:32: c:\mingw\include\io.h:41:15: note: previous declaration of 'intptr_t' was here typedef int intptr_t; ^ In file included from http.c:34:0: c:\mingw\include\stdio.h:318:37: error: conflicting types for '_snprintf' _CRTIMP int __cdecl __MINGW_NOTHROW _snprintf (char*, size_t, const char*, ...); ^ c:\mingw\include\stdio.h:318:1: note: a parameter list with an ellipsis can't match an empty parameter name list declaration _CRTIMP int __cdecl __MINGW_NOTHROW _snprintf (char*, size_t, const char*, ...); ^ In file included from sysdep.h:53:0, from wget.h:101, from http.c:32: mswindows.h:88:18: note: previous declaration of '_snprintf' was here #define snprintf _snprintf ^ sysdep.h:141:5: note: in expansion of macro 'snprintf' int snprintf (); ^ mswindows.h:88:18: error: conflicting types for '_snprintf' #define snprintf _snprintf ^ In file included from http.c:34:0: c:\mingw\include\stdio.h:330:1: note: a parameter list with an ellipsis can't match an empty parameter name list declaration int __cdecl __MINGW_NOTHROW snprintf (char *, size_t, const char *, ...); ^ In file included from sysdep.h:53:0, from wget.h:101, from http.c:32: mswindows.h:88:18: note: previous declaration of '_snprintf' was here #define snprintf _snprintf ^ sysdep.h:141:5: note: in expansion of macro 'snprintf' int snprintf (); ^ http.c:58:17: fatal error: md5.h: No such file or directory #include "md5.h" ^ compilation terminated. <builtin>: recipe for target 'http.o' failed [/spoiler] Dodałem do %path% ścieżkę do MinGW, wszystko wygląda na błąd w kodzie wget. pzdr MrJase |
|
« 1 » |