-   Data (
-   -   compiling decomp under linux (

James Heinrich 2006-08-27 14:46

compiling decomp under linux
I'd like to get the [i]decomp[/i] 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'[/code]What do I do? :unsure:

akruppa 2006-08-27 15:20

1 Attachment(s)
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 [B]-lm[/B] switch when compiling.


James Heinrich 2006-08-27 15:59

:w00t: it works! :flex:

Thanks! :bow:

All times are UTC. The time now is 09:50.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.