gcode-mirror / truecrack

Automatically exported from code.google.com/p/truecrack
GNU General Public License v3.0
0 stars 1 forks source link

unable to compile on cygwin #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
$ make
cc -c -I./Common/ -I./Crypto/ -I./Cuda/ -I./Main/ -I./ -lm Main/Core.c -o Core.o
In file included from /usr/include/cygwin/types.h:21:0,
                 from /usr/include/sys/types.h:455,
                 from /usr/include/stdio.h:46,
                 from Main/Utils.h:22,
                 from Main/Core.c:20:
./Common/endian.h:71:5: error: #error Byte order cannot be determined 
(BYTE_ORDER undefined)

using GCC 4.5.3 on an just-now updated cygwin installation.  Looked in readme 
but didn't see any additional instructions for installing under cygwin.

Original issue reported on code.google.com by cmelliso on 18 Oct 2012 at 2:43

GoogleCodeExporter commented 9 years ago
I never try to compile on Cygwin.
The code should recognized windows and set the macro: _WIN32 LITTLE_ENDIAN 
BYTE_ORDER
If this doesn't happen, try to add the extra parameters -D_WIN32 to the 
arguments of cc compiler.

Original comment by luck87 on 5 Jan 2013 at 12:46