How do you compile this on LInux? When I unzip it and run make, I get a lot of errors and warnings, here are the first few lines:
Code:
gcc -Wall -O2 -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -c -o
prime.o prime.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
cc1: advarsel: -malign-loops is obsolete, use -falign-loops
cc1: advarsel: -malign-jumps is obsolete, use -falign-jumps
cc1: advarsel: -malign-functions is obsolete, use -falign-functions
prime.c:5:21: windows.h: Ingen sådan fil eller filkatalog
prime.c: I funktionen 'isHighResTimerAvailable':
prime.c:11: error: `LARGE_INTEGER' undeclared (first use in this function)
Well replacing '-march=i486' with '-march=pentium4 -mcpu=pentium4' and changing those m's to f's are easy, as windows.h are included in factor.c if __linux__ is defined, I guessed that I didn't need it and removed that line, but the lack of a declaration of LARGE_INTEGER, I couldn't guess what to do about.
I'm using gcc 3.3.2 from Debian testing/unstable.
BTW: There really should be a license attached, to clarify what might be done with the code.