User forums > Using Code::Blocks

Code::Blocks compiles in 64 bit Linux!!

<< < (3/3)

mandrav:

--- Quote from: Anonymous --->> but I don't understand why it's using a "foreign" regcomp() in the first place...

well, it's part of libc, then "your regcomp" is less preferred than the one in libc.
usually you __don't __ use the same function name that is available in libc.

just my 2 cents
--- End quote ---

You 're right, but I hadn't noticed it before. This code (the whole depslib) was contributed by another user.
Anyway, if I rename the regcomp() function to, say, my_regcomp() it stops freezing but it's not working either  :?
Still haven't had the time to investigate...

Yiannis.

Neutron:
Working on a different linux machine (32-bit on this one) and i get the same regcomp crashes.

Following the suggestions here to change regcomp to my_regcomp and tried it and it didn't work. I even removed the code from regexp.h and regexp.c and forced depslib to use the libc functions without luck.

Apparently, the regcomp and friends called in depslib headers.c are not at all compaticble with the libc regcomp and friends.  So, in regexp.h, i changed all the functions to start with my, since the all conflict with libc ones (that is, I now have my_regcomp, my_regexec, my_regerror, and my_redone). I then updated all associated function calls in regexp.c and headers.c to use the my_* functions (only a few to update, its not bad).

And now it all works :).  I would guess this fixes the problem under 64-bit linux too. I'll post here if i find otherwise.

rickg22:
:shock: PLEASE SUBMIT A PATCH!!! :o

Thank you :)

Anonymous:

--- Quote from: rickg22 ---:shock: PLEASE SUBMIT A PATCH!!! :o

Thank you :)
--- End quote ---
No problem: https://sourceforge.net/tracker/index.php?func=detail&aid=1224472&group_id=126998&atid=707418

Navigation

[0] Message Index

[*] Previous page

Go to full version