🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Allegro, threading trouble with pthreads.

Started by
1 comment, last by 23yrold3yrold 19 years, 10 months ago
At the top of my main.cpp file i have: #include <pthread.h> #include "allegro.h" This gives me tons of errors in atleast 4 different allegro header files that all say: "using typedef-name `BITMAP' after `" Then at the bottom of about 40 of these errors there is: "declaration of C function `int WinMain(void*, void*, char*, int)' 933 C:\Dev-Cpp\include\winbase.h previous declaration `int " I think that pthread trys to load one of the windows files, winbase.h, and because allegro and windows are loaded at the same time, and both have those WinMain functions, it gets messed up... How could i fix this? [Edited by - TheBunny on September 22, 2004 5:33:18 PM]
Advertisement
BTW i got the allegro and phreads source from the cd with "Game Programming All In One" 2nd edition. By Johnathan S. Harbour.
I think you want this.

Jesus saves ... the rest of you take 2d4 fire damage.

This topic is closed to new replies.

Advertisement