Re: Re: [AD] A weird problem |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
--- Laurence Withers <lwithers@xxxxxxxxxx> a écrit : > -----BEGIN PGP
SIGNED MESSAGE-----
> Hash: SHA1
>
> On Monday 15 July 2002 21:52, Emeric Poupon wrote:
> > #include <allegro.h>
> > int main() {
> > int c_d;
> > allegro_init();
> > c_d = desktop_color_depth();
> > allegro_message("Color depth = %d", c_d);
> > return 0;
> > }
> > END_OF_MAIN();
> [snip]
>
> Try compiling this code instead, it should help to narrow the problem
> down:
>
> #include <allegro.h>
> int main()
> {
> int a, b;
> if(allegro_init()) abort();
> a = desktop_color_depth();
> b = 16;
> allegro_message("Color depth = %d", a);
> allegro_message("Color depth = %d", b);
> allegro_message("Color depth = %d", desktop_color_depth());
> return 0;
> }
>
> Depending on the results, we can track down whether it is an Allegro bug
> or a MinGW bug.
>
I compiled this code with Mingw32 using -O2; it works fine, but I am sure that I had
a bad mix of .a / .h before :) as i said, reinstalling Mingw32 + allegro 4.0.2
solved the problem.
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com