View Single Post
  #7 (permalink)  
Old 07-13-2008, 06:17 PM
hellochar hellochar is offline
Newbie
 
Join Date: Jul 2008
Posts: 10
Rep Power: 0
hellochar is on a distinguished road
Default Re: Allegro Game Library

I'm having a problem with set_close_button_handler(X_button_handler());. Code::Blocks gives me a compiler error stating "invalid use of void expression". Before that it gives me a warning - "warning: implicit declaration of function 'set close button handler'". I'm thinking the compiler isn't finding the function set_close_button_handler, but that doesn't make sense because I've imported allegro.h and all other functions work.

I'm using Allegro 4.2.1, Code::Blocks for my IDE, and the GNU GCC compiler (I installed MinGW for it).
Reply With Quote