From: Jeff Mitchell Date: 2004-06-11T20:16:44+09:00 Subject: Re: #include required for Opteron but not Pentium. --- Sam Roberts wrote: > Quoteing jim@freeze.org, on Fri, Jun 11, 2004 at 02:20:12AM +0900: > > > What compiler are you using? Are you sure you have the warning levels > > > cranked high? Default build options on many compilers won't tell you > > > about this kind of stuff. > > > > > > > gcc > > > > The warnings are whatever is generated by mkmf/create_makefile by default. > > There's a chance that they do not include -Wall. I'd suggest always > using this flag, at least during development. I've been bitten by lack of signature checking in the default extconf.rb makefile output. Because a function is returning garbage for no apparent reason it's an extremely difficult bug track down, if you are not aware that prototype checks are absent. I've been using $CFLAGS += " -Wall" if CONFIG["CC"] == "gcc". I would prefer to add -Wstrict-prototypes as well, but this is incompatible with ruby.h. Is there portable way for extconf.rb to provide stricter checks, preferably by default? __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/