Forum: Ruby ruby.h and warning on redefined "PACKAGE_NAME"

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Oliver (Guest)
on 2007-07-19 22:11
(Received via mailing list)
hi,

if a C program have:

#include <ruby.h>

and autoconf'ed, which meaning it will generate another "config.h",
the compiler will report warning like:

/usr/lib/ruby/1.8/i486-linux/config.h:1:1: warning: "PACKAGE_NAME"
redefined

The reason being ruby.h include its config.h, and there is a empty
PACKAGE_NAME etc. defined there already.

Is there any way I can get rid of this warning?

thanks

oliver
This topic is locked and can not be replied to.