[Bcrypt-users] Trouble compiling BCrypt source with GCC in Cygwin
Status: Beta
Brought to you by:
jwshelley
From: Josh W. <Jwi...@ni...> - 2007-07-02 03:30:52
|
Hello All, =20 I graduated from UCI a few years back and no longer have access to UNIX to compile my programs. It's been a while since I've compiled C code in Windows, so I'm looking for some help.=20 =20 I installed Cygwin with the GCC 3.4.4-3, GDB, and Make packages. When I try to compile the unedited BCrypt source using the make command, I get a number of errors (see below).=20 =20 Does anyone have any suggestions? Is it something to do with the zlib.dll header file? =20 Thanks! Josh Williams Nicholas Laboratories =20 =20 ___OUPUT_FROM_CYGWIN____ =20 =20 jwilliams@labs-l-cp-jwil2 ~ $ cd bcrypt =20 jwilliams@labs-l-cp-jwil2 ~/bcrypt $ make gcc -O2 -Wall -c main.c In file included from main.c:10: includes.h:22:18: zlib.h: No such file or directory In file included from main.c:11: defines.h:6: error: parse error before "uLong" defines.h:6: warning: no semicolon at end of struct or union defines.h:8: error: parse error before '}' token defines.h:8: warning: type defaults to `int' in declaration of `BCoptions' defines.h:8: warning: data definition has no type or storage class In file included from main.c:12: functions.h:14: error: parse error before "BFEncrypt" functions.h:14: error: parse error before "uLong" functions.h:15: warning: type defaults to `int' in declaration of `BFEncrypt' functions.h:15: warning: data definition has no type or storage class functions.h:16: error: parse error before "BFDecrypt" functions.h:17: error: parse error before "uLong" functions.h:17: warning: type defaults to `int' in declaration of `BFDecrypt' functions.h:17: warning: data definition has no type or storage class functions.h:24: error: parse error before "sz" functions.h:25: error: parse error before "padInput" functions.h:25: error: parse error before "uLong" functions.h:25: warning: type defaults to `int' in declaration of `padInput' functions.h:25: warning: data definition has no type or storage class functions.h:26: error: parse error before "attachKey" functions.h:26: error: parse error before "uLong" functions.h:26: warning: type defaults to `int' in declaration of `attachKey' functions.h:26: warning: data definition has no type or storage class functions.h:27: error: parse error before "readfile" functions.h:28: warning: type defaults to `int' in declaration of `readfile' functions.h:28: warning: data definition has no type or storage class functions.h:29: error: parse error before "writefile" functions.h:29: error: parse error before "uLong" functions.h:30: warning: type defaults to `int' in declaration of `writefile' functions.h:30: warning: data definition has no type or storage class functions.h:31: error: parse error before "BCoptions" functions.h:34: error: parse error before "docompress" functions.h:34: error: parse error before "uLong" functions.h:34: warning: type defaults to `int' in declaration of `docompress' functions.h:34: warning: data definition has no type or storage class functions.h:35: error: parse error before "douncompress" functions.h:35: error: parse error before "uLong" functions.h:35: warning: type defaults to `int' in declaration of `douncompress' =20 functions.h:35: warning: data definition has no type or storage class functions.h:38: error: parse error before "initoptions" functions.h:38: error: parse error before "options" functions.h:38: warning: type defaults to `int' in declaration of `initoptions' functions.h:38: warning: data definition has no type or storage class functions.h:41: error: parse error before "BCoptions" functions.h:43: error: parse error before "BCoptions" functions.h:50: error: parse error before "uLong" main.c:18: error: parse error before "initoptions" main.c:18: error: parse error before "options" main.c:18: warning: return type defaults to `int' main.c: In function `initoptions': main.c:19: error: `options' undeclared (first use in this function) main.c:19: error: (Each undeclared identifier is reported only once main.c:19: error: for each function it appears in.) main.c: At top level: main.c:54: error: parse error before "BCoptions" main.c: In function `parseArgs': main.c:58: error: `argv' undeclared (first use in this function) main.c:62: error: `options' undeclared (first use in this function) main.c:64: error: `argc' undeclared (first use in this function) main.c: At top level: main.c:115: error: parse error before "BCoptions" main.c: In function `assignFiles': main.c:117: error: `arg' undeclared (first use in this function) main.c:117: error: `statbuf' undeclared (first use in this function) main.c:122: error: `infile' undeclared (first use in this function) main.c:127: error: `outfile' undeclared (first use in this function) main.c:135: error: `key' undeclared (first use in this function) main.c:135: error: `options' undeclared (first use in this function) main.c: In function `main': main.c:159: error: `uLong' undeclared (first use in this function) main.c:159: error: parse error before "sz" main.c:163: error: parse error before "options" main.c:165: error: `options' undeclared (first use in this function) main.c:177: error: `sz' undeclared (first use in this function) make: *** [main.o] Error 1 =20 jwilliams@labs-l-cp-jwil2 ~/bcrypt $ |