Customizing Home Capacity.
Collapse
X
-
Comment
-
I use cygwin now. Or at least I used to, I don't have it in my new computer. Anyway, I did find cygwin much easier to use than mingw.
[EDIT] Thangorodrim compile instructions can be useful to you:
[EDIT EDIT]
Reading those...not so useful after all. makefile.cyg doesn't even exist anymore. Makefile.win might work though (I haven't compiled my own version for ages now).Last edited by Timo Pietilä; October 17, 2013, 10:19.Comment
-
Would this help anyone tell me what I'm doing wrong?
[spoiler]Code:gcc -DWINDOWS -static -Iwin/include -Lwin/lib -Wall -Wextra -Wno-unused-paramete r -Wno-missing-field-initializers -std=c99 -Wdeclaration-after-statement -O2 -I. -c -o z-file.o z-file.c In file included from z-file.c:24:0: c:\mingw\include\io.h:301:1: error: unknown type name 'off64_t' __CRT_INLINE off64_t lseek64 (int, off64_t, int); ^ c:\mingw\include\io.h:301:36: error: unknown type name 'off64_t' __CRT_INLINE off64_t lseek64 (int, off64_t, int); ^ c:\mingw\include\io.h:302:1: error: unknown type name 'off64_t' __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) { ^ c:\mingw\include\io.h:302:39: error: unknown type name 'off64_t' __CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) { ^ z-file.c: In function 'file_exists': z-file.c:309:14: error: storage size of 'st' isn't known struct stat st; ^ z-file.c:310:2: warning: implicit declaration of function 'stat' [-Wimplicit-fun ction-declaration] return (stat(fname, &st) == 0); ^ z-file.c:309:14: warning: unused variable 'st' [-Wunused-variable] struct stat st; ^ z-file.c: In function 'file_newer': z-file.c:348:14: error: storage size of 'stat1' isn't known struct stat stat1, stat2; ^ z-file.c:348:21: error: storage size of 'stat2' isn't known struct stat stat1, stat2; ^ z-file.c:348:21: warning: unused variable 'stat2' [-Wunused-variable] z-file.c:348:14: warning: unused variable 'stat1' [-Wunused-variable] struct stat stat1, stat2; ^ z-file.c: In function 'dir_exists': z-file.c:676:14: error: storage size of 'buf' isn't known struct stat buf; ^ z-file.c:676:14: warning: unused variable 'buf' [-Wunused-variable] z-file.c: In function 'file_exists': z-file.c:311:1: warning: control reaches end of non-void function [-Wreturn-type ] } ^ z-file.c: In function 'file_newer': z-file.c:361:1: warning: control reaches end of non-void function [-Wreturn-type ] } ^ z-file.c: In function 'dir_exists': z-file.c:686:1: warning: control reaches end of non-void function [-Wreturn-type ] } ^ make: *** [z-file.o] Error 1
Comment
-
My best guess is that it's some 32- vs 64-bit issue, but I'm not sure what. Here is a similar problem someone had recently with NPPAngband. Sorry to be of so little help.One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.Comment
-
Comment