[BiO BB] scan_for_matches
stefanielager at fastmail.ca
Wed Sep 22 02:17:52 EDT 2004
Thank you Dmitri,
Changing line 235 in ggpunit.c according to your instructions, together
with modifications of line 240 and 767 in ggpunit.c and line 17 in
scan_for_matches.c according to:
old: char *malloc();
new: extern void *malloc();
Solved the problems, now it compiled on Linux with gcc, very nice!
> Hi, Stefanie!
> On Tue, Sep 21, 2004 at 10:38:28AM +0000, Stefanie Lager wrote:
>> I have problems to compile the scan_for_matches pattern searching
>> program on Linux (gcc 3.4.0). When I try to compile it with
>> "gcc -O -o scan_for_matches ggpunit.c scan_for_matches.c", I get
>> "error:conflicting types for 'malloc'" line 17 in scan_for_matches.c
>> and line 235 in ggpunit.c . Does anyone have a compiled version of
>> scan_for_matches for Linux, or know how to fix the "malloc" problem?
> To fix it, you will need to change the line 235 in ggpunit.c:
> old: char *malloc(int ln);
> new: extern void *malloc (size_t ln);
> And rerun the compiler.
> Hope this help,
http://fastmail.ca/ - Fast Secure Web Email for Canadians
More information about the BBB