![]() |
![]() |
#1 |
"James Heinrich"
May 2004
ex-Northern Ontario
32·5·7·13 Posts |
![]()
I'd like to get the decomp program running on my linux server (RedHat9, 2.4.20), but I'll show off my C ignorance here and ask for help getting it to compile... this is what I get:
Code:
# gcc DECOMP.C DECOMP.C: In function `int isprime(long unsigned int)': DECOMP.C:24: warning: assignment to `long unsigned int' from `double' DECOMP.C:24: warning: argument to `long unsigned int' from `double' DECOMP.C: In function `void decompress_factors(char*)': DECOMP.C:219: `isdigit' undeclared (first use this function) DECOMP.C:219: (Each undeclared identifier is reported only once for each function it appears in.) DECOMP.C:227: `atoi' undeclared (first use this function) DECOMP.C: At global scope: DECOMP.C:369: `main' must return `int' ![]() |
![]() |
![]() |
![]() |
#2 |
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
![]()
Here's a slightly modified decomp.c for Linux. It includes the required headers and tries to open both lower case and upper casefile names - unlike Windows, Linux is case-sensitive. Remember to include the math library with the -lm switch when compiling.
Alex |
![]() |
![]() |
![]() |
#3 |
"James Heinrich"
May 2004
ex-Northern Ontario
32·5·7·13 Posts |
![]() ![]() ![]() Thanks! ![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
compiling a static Linux gmp-ecm version | yoyo | GMP-ECM | 9 | 2016-12-25 22:46 |
Compiling ggnfs on linux | rmd | Software | 2 | 2015-11-08 15:38 |
compiling ggnfs in Linux | framontb | Factoring | 2 | 2013-09-13 02:58 |
compiling mprime on linux | graysky | Software | 6 | 2011-03-14 07:00 |
msieve linux compiling | Trevil | Msieve | 2 | 2009-12-06 19:49 |