thanks for answer Andre
--- Andre Majorel <[EMAIL PROTECTED]> wrote:
> On 2002-03-11 07:34 -0800, Ricardo Rugerio wrote:
> >
> > but that is so weird!
> >
> > I had compiled it in my linux box, without
> > changues, and I am using gcc version 2.95.2
> >
> > the fix that you say is like this:
> >
> > changue this line :
> >
> > extern XUnionRegion(....
> >
> > into this line
> >
> > extern float XUnionRegion(....
> >
> > for example???
>
> Rick,
>
> This is not an Xmame problem, this is a Sun problem.
> The X
> headers (Xutil.h and friends) included with certain
> versions of
> Solaris are written in a dialect of C that modern
> compilers
> frown upon.
this trouble isn't with Xmame, is with VDK instead.
>
> In this case, they include function prototypes that
> don't
> specify what the function returns. Since C exists,
> if you don't
> specify what a function returns, the compiler
> assumes it's
> "int". This practice has been deprecated for many
> years. The new
> standard (1999) has made it illegal.
>
> The compiler you're using enforces the 1999 standard
> and rejects
> those headers.
>
> You can :
>
> - edit the system headers to add "int" in front of
> all typeless
> function prototypes. Your sysadmin might not
> appreciate.
>
> - look on Sun's site for the appropriate patch and
> ask your
> sysadmin to apply it.
what kind of patch do you refer ?
"cc patchs" or something like this?
>
> - try another compiler, like GCC.
that is the worst!, I am using gcc version 2.95.2
:-(
>
> - look in the doc of your compiler for an option to
> turn these
> errors into warnings (the equivalent of GCC's
> -fpermissive).
about this, how can I see the gcc flags?
I say is there anything like:
gcc --flags
I put -fpermissive and I didn't get an error, but
it didn't work, I put in this line:
CFLAGS = -fpermissive -g -O2
-I/usr/local/include/gtk-1.2
-I/usr/local/include/glib-1.2
and later in this line
CXXFLAGS = -s -O2 -Wall -Wcast-qual -fpermissive
-Woverloaded-virtual -Wconversion -Wstrict-pr
ototypes -Winline
but the errors exists yet.
thx again
rick.
>
> --
> Andr� Majorel <URL:http://www.teaser.fr/~amajorel/>
> std::disclaimer ("Not speaking for my employer");
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
_______________________________________________
Xmame mailing list
[EMAIL PROTECTED]
http://toybox.twisted.org.uk/mailman/listinfo/xmame