![]() |
|
#1
|
|||
|
|||
Allegro BITMAP convert errorI compiled my game and it's saying it can't convert the bitmaps. I have both of them in the same folder and they are definitely .bmp files so I don't know what's wrong
CPP / C++ / C Code:
Errors C:\Dev\Dev-Cpp\Allegro\Test\tic tac toe\main.cpp In function `void drawXO()': 86 C:\Dev\Dev-Cpp\Allegro\Test\tic tac toe\main.cpp cannot convert `BITMAP' to `BITMAP*' for argument `2' to `void draw_sprite(BITMAP*, BITMAP*, int, int)' 91 C:\Dev\Dev-Cpp\Allegro\Test\tic tac toe\main.cpp cannot convert `BITMAP' to `BITMAP*' for argument `2' to `void draw_sprite(BITMAP*, BITMAP*, int, int)' C:\Dev\Dev-Cpp\Allegro\Test\tic tac toe\main.cpp In function `void moveBox()': 133 C:\Dev\Dev-Cpp\Allegro\Test\tic tac toe\main.cpp non-lvalue in assignment C:\Dev\Dev-Cpp\Allegro\Test\tic tac toe\main.cpp In function `int _mangled_main()': 146 C:\Dev\Dev-Cpp\Allegro\Test\tic tac toe\main.cpp no match for 'operator=' in 'xSprite = load_bitmap(((const char*)"x.bmp"), 0u)' note C:\Dev\Dev-Cpp\include\allegro\gfx.h:262 candidates are: BITMAP& BITMAP::operator=(const BITMAP&) 148 C:\Dev\Dev-Cpp\Allegro\Test\tic tac toe\main.cpp no match for 'operator=' in 'oSprite = load_bitmap(((const char*)"o.bmp"), 0u)' note C:\Dev\Dev-Cpp\include\allegro\gfx.h:262 candidates are: BITMAP& BITMAP::operator=(const BITMAP&) 158 C:\Dev\Dev-Cpp\Allegro\Test\tic tac toe\main.cpp cannot convert `BITMAP' to `BITMAP*' for argument `1' to `void destroy_bitmap(BITMAP*)' 159 C:\Dev\Dev-Cpp\Allegro\Test\tic tac toe\main.cpp cannot convert `BITMAP' to `BITMAP*' for argument `1' to `void destroy_bitmap(BITMAP*)' 159 C:\Dev\Dev-Cpp\Allegro\Test\tic tac toe\main.cpp *** [main.o] Error 1 |
|||
|
#2
|
|||
|
|||
Re: Allegro BITMAP convert errorUGH the problem with the bitmaps was the BITMAP variables weren't pointers, the Ivalue was a mistake with = and ==. Sorry guys!
|
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Two-Tier data dissemination code installation problem | nidhibansal1984 | Computer Software Forum - Linux | 6 | 16-Sep-2007 11:13 |
| Linked Lists advice request | promsan | C Programming Language | 74 | 23-May-2007 09:29 |
| Major newbie problem | cynack | MS Visual C++ / MFC Forum | 1 | 08-Apr-2007 12:25 |
| Winsock error when compiling FLTK 2.0 Projects | mauriciorossi | FLTK Forum | 3 | 16-Aug-2005 11:18 |
| Help with syntax errors | PeteGallo | C Programming Language | 7 | 08-Aug-2005 21:30 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The