Regular expressions, C++ kai linux

Dimitrios Kamenopoulos el97146 at mail.ntua.gr
Mon Jun 24 22:05:02 EEST 2002


On Monday 24 June 2002 21:39, Dimitris Stasinopoulos wrote:
> Paides xaireto()
>
> Proekipse ena "endiaferon" provlima.
>
> Mesa se kodika C++ prepei na xrisimopoiiso regular expressions. Ara prepei
> na kaleso tin regcomp(). Me to pou to kano omos, amesos pairno SIGSEGV, kai
> afto dioti i regcomp() kanei allocate kapoion xoro gia na kanei compile tin
> regular expression, kai profanos aftos o xoros ginetai allocated me kapoia
> apo tis *alloc() functions tis glibc.
>
> Omos, epeidi o "new" operator tis C++ kai oi *alloc den prepei na paizoun
> pote mesa ston idio kodika, pairno to anaferthen SIGSEGV.
>
> Kai eroto: Ti mporei na ginei epi tou thematos? Na paro ton kodika tis
> regcomp() kai na antikatastiso tis *alloc() me "new", kai na onomaso tin
> nea function cc_regcomp() einai ligo ierosilia, alla an den bro alli lisi
> mallon ekei tha katalikso :-/
>
> Exei kaneis kamia idea?
> Efxaristo ek ton proteron.
Dokimase th vivlio8hkh "Boost". Einai open-source kai exei ena swro xrhsima 
pragmata gia C++ (kai regexp). 
http://www.boost.org



More information about the Linux-greek-users mailing list