On 1999/Dec/06, Marcus Sundberg wrote:

> > #include<ggi/ggi.h>
> > int main()
> int main(void)

        It was only an example to show you that it crashes at ggiOpen, it
wasn't intended to compile with -pedantic :) (even -pedantic doesn't warn if
you don't use (void).

        Here you have the new ANSI, -pedantic compatible and pretty printed
code:

#include<ggi/ggi.h>

int main()
{
    ggi_visual_t v;
    if (ggiInit() < 0) {
        fprintf(stderr,"ggiInit failed\n");
        exit(1);
    }
    v=ggiOpen(NULL);
    if (v == NULL){
        ggiPanic("ggiOpen failed\n");
    }

    if (ggiSetGraphMode(v, GGI_AUTO, GGI_AUTO, GGI_AUTO, GGI_AUTO, GT_AUTO)<0){
        ggiPanic("ggiSetGraphMode failed\n");
    }
    ggiClose(v);
    return 0;
}

        And here you have the result:

        Segmentation Fault (core dumped)

        The backtrace is the same than the other mail one.

> If the problem persists then, please give me the urls of the
> GGI-related .debs you are using, and I'll check it out at the
> Debian system at work.

        ftp://ceu.fi.udc.es/debian/dists/potato/main/binary-i386/libs/...

> > init.c:40: syntax error before `uint32'
> > init.c:41: syntax error before `int'
> > init.c:42: syntax error before `void'
> 
> If you use a snapshot you must take all the libraries from the same
> snapshot - your LibGG is too old.

        Oh! right, I forgot to compile libgg and libgii of this snapshot,
thanks.
-- 
"The artifficial intelligence will never exceed the natural stupidity" 
                                                             Santiago Souto
  _
 /_) \/ / /  email: mailto:[EMAIL PROTECTED]
/ \  / (_/   www  : http://programacion.mundivia.es/ryu
[ GGL developer ] & [ IRCore developer ] & [ GPUL member ]

Reply via email to