Regular expressions, C++ kai linux

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Jun 26 01:39:02 EEST 2002


On 2002-06-25 12:45 +0000, Nikos Mavroyanopoulos wrote:
> On Tue, Jun 25, 2002 at 11:45:25AM +0300, Dimitris Stasinopoulos wrote:
> >
> > g++. Sample compile line:
> > g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -fno-exceptions -fno-check-new -c -o 
> > helpfunc.o `test -f helpfunc.cpp || echo './'`helpfunc.cpp
>
> Ξέχασες το -Wall. Ειδικά στο development χρειάζονται οι -g (ή -ggdb3)
> και η -O0, αλλιώς το debugging είναι εφιάλτης.

O Bruce Evans (bde at FreeBSD.org) exei mia mania na xrhsimopoiei ta
parakato options:

	-Wall -Wno-format-y2k -W -Wstrict-prototypes \
	-Wmissing-prototypes -Wpointer-arith -Wreturn-type \
	-Wcast-qual -Wwrite-strings -Wswitch -Wshadow \
	-Wcast-align -Wuninitialized -ansi -pedantic \
	-Wbad-function-cast -Wchar-subscripts -Winline \
	-Wnested-externs -Wredundant-decls

Milame gia thn uperbolh ths aperanths uperbolhs tora, alla einai
pragmatika endiaferon to posa kai ti eidous warnings mporei na dei
kaneis me ola sxedon ta -W flags tou gcc energopoihmena :-)

Epishs, analoga to leitourgiko susthma, mporei to -O0 na einai
efialths apo mono tou.  Sto FreeBSD opoios paizei me compiles, MHN
xrhsimopoiei to -O0 giati toulaxiston sto FreeBSD 5.0-CURRENT pou exo
edo pera einai entelos teleios b0rken.

- Giorgos




More information about the Linux-greek-users mailing list