Re: [Gptfdisk-general] Compiling gptfdisk on cygwin fails
Brought to you by:
srs5694
From: Rod S. <rod...@ro...> - 2012-07-24 19:46:56
|
On 07/24/2012 01:21 PM, notstop wrote: > Trying to compile gdisk only on cygwin: > > $ make gdisk ... > g++ -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o diskio-unix.o > diskio-unix.cc > diskio-unix.cc: In member function ‘int DiskIO::OpenForRead()’: > diskio-unix.cc:48:18: error: aggregate ‘DiskIO::OpenForRead()::stat64 > st’ has incomplete type and cannot be defined ... > make: *** [diskio-unix.o] Error 1 ... > Any patch to solve it? I'm afraid not. I don't support compiling gdisk under Cygwin. You're likely to have better luck with either MinGW or Microsoft's C++ compiler. Both are free and both can produce Windows executables. (I've only used MinGW as a cross-compiler under Linux, though; you may need to jump through some hoops to get the Windows version to work.) That said, if you must use Cygwin, be aware that the diskio-unix.cc file provides Unix-specific support functions. You might have better luck with diskio-windows.cc, even under Cygwin; or you might need to examine the various #ifdef and #include statements in diskio-unix.cc to come up with an appropriate way to #include something in Cygwin that defines the stat64 structure definition. I'm not familiar enough with Cygwin to make any specific recommendations. -- Rod Smith rod...@ro... http://www.rodsbooks.com |