Stephen Warren wrote: > Stephen Warren wrote: >> I propose we replace "-ansi -pedantic-errors" with "-std=c99". > > Sorry, just remove "-ansi -pedantic-errors" and don't add "-std=c99"; > the variadic macro works with -std=c99, but the strdup prototype still > isn't present unless we just remove all the standard-selection options.
Nope, -ansi is an alias for -std=c99 which DOES NOT error on stuff like variables not at the top. -pedantic-errors is required. I don't get the macro error that you do: [EMAIL PROTECTED] concordance]$ make make all-am make[1]: Entering directory `/home/phil/build/cvs/concordance/concordance' gcc -DHAVE_CONFIG_H -I. -Wall -ansi -pedantic-errors -g -O2 -MT concordance-concordance.o -MD -MP -MF .deps/concordance-concordance.Tpo -c -o concordance-concordance.o `test -f 'concordance.c' || echo './'`concordance.c concordance.c: In function 'parse_options': concordance.c:589: warning: implicit declaration of function 'strdup' mv -f .deps/concordance-concordance.Tpo .deps/concordance-concordance.Po /bin/sh ./libtool --tag=CC --mode=link gcc -Wall -ansi -pedantic-errors -g -O2 -lconcord -o concordance concordance-concordance.o mkdir .libs gcc -Wall -ansi -pedantic-errors -g -O2 -o concordance concordance-concordance.o /usr/lib/libconcord.so make[1]: Leaving directory `/home/phil/build/cvs/concordance/concordance' -- Phil Dibowitz [EMAIL PROTECTED] Open Source software and tech docs Insanity Palace of Metallica http://www.phildev.net/ http://www.ipom.com/ "Never write it in C if you can do it in 'awk'; Never do it in 'awk' if 'sed' can handle it; Never use 'sed' when 'tr' can do the job; Never invoke 'tr' when 'cat' is sufficient; Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ concordance-devel mailing list concordance-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/concordance-devel