This topic is 5479 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

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]

##### Share on other sites
BTW i got the allegro and phreads source from the cd with "Game Programming All In One" 2nd edition. By Johnathan S. Harbour.

• ### Game Developer Survey

We are looking for qualified game developers to participate in a 10-minute online survey. Qualified participants will be offered a \$15 incentive for your time and insights. Click here to start!

• 11
• 10
• 9
• 15
• 22