Page 1 of 1

How do I build the new pbzx.c ?

PostPosted: Thu Feb 18, 2016 7:22 pm
by matteyeux
Hello, I'd like to build pbzx.c on Ubuntu Linux, but I have some errors.
Code: Select all
$ gcc pbzx.c
pbzx.c: In function ‘main’:
pbzx.c:80:8: error: ‘uint32_t’ undeclared (first use in this function)
    (* (uint32_t *) buf ));
        ^
pbzx.c:80:8: note: each undeclared identifier is reported only once for each function it appears in
pbzx.c:80:18: error: expected expression before ‘)’ token
    (* (uint32_t *) buf ));
                  ^
pbzx.c:93:5: error: expected declaration or statement at end of input
     return 0;
     ^


Thank you

Re: How do I build the new pbzx.c ?

PostPosted: Thu Feb 18, 2016 8:04 pm
by morpheus
typedef int uint32_t;
typedef long long uint64_t;

should build cleanly on a Mac OS X though.

Re: How do I build the new pbzx.c ?

PostPosted: Thu Feb 18, 2016 8:22 pm
by matteyeux
It's okay, I build it, thanks !

Re: How do I build the new pbzx.c ?

PostPosted: Thu Feb 18, 2016 10:37 pm
by morpheus
you're welcome! It should work well from here. I use it extensively now working on TvOS reversing.