Rub�n <[EMAIL PROTECTED]> writes:
> I've problems both with lastest debian package of GGI, all programs
> die with SEGV at ggiOpen, see an example:
First fix your program:
> #include<ggi/ggi.h>
> int main()
int main(void)
> {
> ggi_visual_t *v;
ggi_visual_t v;
> ggiInit();
if (ggiInit() < 0) {
fprintf(stderr, "ggiInit failed\n");
exit(1);
}
> v=ggiOpen(NULL);
v=ggiOpen(NULL);
if (v == NULL) {
ggiPanic("ggiOpen failed\n");
}
> ggiSetGraphMode(v,GGI_AUTO,GGI_AUTO,GGI_AUTO,GGI_AUTO,GT_AUTO);
if (ggiSetGraphMode(v,GGI_AUTO,GGI_AUTO,GGI_AUTO,GGI_AUTO,GT_AUTO) < 0) {
ggiPanic("ggiSetGraphMode failed\n");
}
> ggiClose(v);
> return 0;
> }
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.
> I've tried also to compile the lastest snapshot (99/12/05), and I
> got errors in all places where appeared EXPORTVAR and IMPORTVAR, for
> example:
> 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.
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: [EMAIL PROTECTED]