Skip to main content
gamedev.net
🔒 Locked 🎲 GameMaker

allegro problem

Started by zyvolution 7 replies 2.1k views
Original Post
zyvolution
zyvolution
I whas following some tutorials for allegro. And i whas expirimenting with some stuff. And i come up with this. [main.cpp] #include #include "data.h" int main(int argc, int *argv[]) { allegro_init(); install_keyboard(); set_color_depth(24); set_gfx_mode(GFX_AUTODETECT,640,480,0,0); BITMAP *bac = create_bitmap(640,480); DATAFILE *data_pack = NULL; data_pack = load_datafile("texture.dat"); draw_sprite(bac, (BITMAP*)data_pack[0].dat, 0, 0); readkey(); destroy_bitmap(bac); unload_datafile(data_pack); return 0; } END_OF_MAIN(); [data.h] /* Allegro datafile object indexes, produced by grabber v4.2.0, MSVC */ /* Datafile: c:\gerben\gfx\ */ /* Date: Wed Aug 16 17:24:34 2006 */ /* Do not hand edit! */ #define background 0 /* BMP */ But it does not work. I cant close the window when i run it. (close button is grey) And it does not display anything just a black window. But it doesnt get compile errors. (i use dev-cpp i like it more than visual c++) can someone please help me out? EDIT: The image i want to load/display is 320x217 and it is a 24 bit bmp image. the data file is only 25 kb the image itself (not in the file) is only 203 kb and i can load that one :( but i cant from the data file one :(
konForce
konForce
You're never drawing the buffer (bac) to the screen.

blit(bac, screen, 0,0, 0,0, SCREEN_W,SCREEN_H);

Also, you cannot click the X in the window unless you set a handler. See set_close_button_callback().
zyvolution
zyvolution
Oops :D
I knew i forgotten something :D
zyvolution
zyvolution
This is the code now:
( i dint change data.h )

#include
#include "data.h"

int main(int argc, int *argv[])
{
allegro_init();
install_keyboard();
set_color_depth(24);
set_gfx_mode(GFX_AUTODETECT,800,600,0,0);
BITMAP* bac = NULL;
DATAFILE *data_pack = NULL;
data_pack = load_datafile("texture.dat");
draw_sprite(bac, (BITMAP*)data_pack[background].dat, 0, 0);
blit(bac,screen,o,o,o,o,800,600);
readkey();
destroy_bitmap(bac);
unload_datafile(data_pack);
return 0;
}
END_OF_MAIN();


And now i get this crap:

Compiler: Default compiler
Building Makefile: "C:\gerben\gfx\Makefile.win"
Bezig met uitvoeren van make...
make.exe -f "C:\gerben\gfx\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/c++/3.4.2" -I"C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include"

In file included from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/asm.inl:28,
from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:25,
from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:24,
from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/draw.h:66,
from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro.h:40,
from main.cpp:1:

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/al386gcc.h: In function uintptr_t bmp_write_line(BITMAP*, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/al386gcc.h:46: error: invalid use of undefined type
struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/al386gcc.h: In function
uintptr_t bmp_read_line(BITMAP*, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/al386gcc.h:68: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/al386gcc.h: In function void bmp_unwrite_line(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/al386gcc.h:90: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
In file included from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:24,
from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/draw.h:66,
from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro.h:40,
from main.cpp:1:
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
int is_windowed_mode()':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:87: error: gfx_driver' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:87: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
void clear_to_color(BITMAP*, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:96: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function int bitmap_color_depth(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:104: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
int bitmap_mask_color(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:112: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function int is_same_bitmap(BITMAP*, BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:120: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:120: error:
BMP_ID_MASK' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:120: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function int is_linear_bitmap(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:138: error: invalid use of undefined type
struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:138: error:
BMP_ID_PLANAR' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function int is_planar_bitmap(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:146: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:146: error:
BMP_ID_PLANAR' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function int is_memory_bitmap(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:154: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:154: error:
BMP_ID_VIDEO' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:154: error: BMP_ID_SYSTEM' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
int is_screen_bitmap(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:162: error: screen' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
int is_video_bitmap(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:170: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:170: error: BMP_ID_VIDEO' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
int is_system_bitmap(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:178: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:178: error: BMP_ID_SYSTEM' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
int is_sub_bitmap(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:186: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:186: error: BMP_ID_SUB' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
void acquire_bitmap(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:203: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:203: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function void release_bitmap(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:212: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:212: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
void acquire_screen()':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:221: error: screen' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
void release_screen()':

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:227: error: screen' undeclared (first use this function)
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
int is_inside_bitmap(BITMAP*, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:235: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:235: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:235: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:235: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:235: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:235: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:235: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function void get_clip_rect(BITMAP*, int*, int*, int*, int*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:252: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:252: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:252: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:252: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function
void set_clip_state(BITMAP*, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:263: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl: In function int get_clip_state(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/gfx.inl:270: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
In file included from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/draw.h:66,
from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro.h:40,
from main.cpp:1:
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
int getpixel(BITMAP*, int, int)':

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:30: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void putpixel(BITMAP*, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:38: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void _allegro_vline(BITMAP*, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:46: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void _allegro_hline(BITMAP*, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:54: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void line(BITMAP*, int, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:72: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void fastline(BITMAP*, int, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:80: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void rectfill(BITMAP*, int, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:88: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void triangle(BITMAP*, int, int, int, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:96: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void polygon(BITMAP*, int, const int*, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:104: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void rect(BITMAP*, int, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:112: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void circle(BITMAP*, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:120: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void circlefill(BITMAP*, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:128: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void ellipse(BITMAP*, int, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:137: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void ellipsefill(BITMAP*, int, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:146: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void arc(BITMAP*, int, int, fixed, fixed, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:155: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void spline(BITMAP*, const int*, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:164: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void floodfill(BITMAP*, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:173: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void polygon3d(BITMAP*, int, BITMAP*, int, V3D**)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:182: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void polygon3d_f(BITMAP*, int, BITMAP*, int, V3D_f**)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:191: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void triangle3d(BITMAP*, int, BITMAP*, V3D*, V3D*, V3D*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:200: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void triangle3d_f(BITMAP*, int, BITMAP*, V3D_f*, V3D_f*, V3D_f*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:209: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void quad3d(BITMAP*, int, BITMAP*, V3D*, V3D*, V3D*, V3D*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:218: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void quad3d_f(BITMAP*, int, BITMAP*, V3D_f*, V3D_f*, V3D_f*, V3D_f*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:227: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void draw_sprite(BITMAP*, BITMAP*, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:238: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:238: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:238: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void draw_sprite_v_flip(BITMAP*, BITMAP*, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:253: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void draw_sprite_h_flip(BITMAP*, BITMAP*, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:262: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void draw_sprite_vh_flip(BITMAP*, BITMAP*, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:271: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void draw_trans_sprite(BITMAP*, BITMAP*, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:281: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:281: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:281: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void draw_lit_sprite(BITMAP*, BITMAP*, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:299: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void draw_gouraud_sprite(BITMAP*, BITMAP*, int, int, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:309: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void draw_character_ex(BITMAP*, BITMAP*, int, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:319: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void rotate_sprite(BITMAP*, BITMAP*, int, int, fixed)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:329: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:329: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:329: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:329: error: invalid use of undefined type
struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:329: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void rotate_sprite_v_flip(BITMAP*, BITMAP*, int, int, fixed)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:341: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:341: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:341: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:341: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:341: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void rotate_scaled_sprite(BITMAP*, BITMAP*, int, int, fixed, fixed)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:353: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:353: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:353: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:353: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:353: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void rotate_scaled_sprite_v_flip(BITMAP*, BITMAP*, int, int, fixed, fixed)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:365: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:365: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:365: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:365: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:365: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void pivot_sprite(BITMAP*, BITMAP*, int, int, int, int, fixed)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:377: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void pivot_sprite_v_flip(BITMAP*, BITMAP*, int, int, int, int, fixed)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:386: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function void pivot_scaled_sprite(BITMAP*, BITMAP*, int, int, int, int, fixed, fixed)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:395: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl: In function
void pivot_scaled_sprite_v_flip(BITMAP*, BITMAP*, int, int, int, int, fixed, fixed)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/draw.inl:404: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
In file included from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/rle.h:45,
from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro.h:41,
from main.cpp:1:
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/rle.inl: In function void draw_rle_sprite(BITMAP*, const RLE_SPRITE*, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/rle.inl:29: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/rle.inl: In function
void draw_trans_rle_sprite(BITMAP*, const RLE_SPRITE*, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/rle.inl:39: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/rle.inl:39: error: invalid use of undefined type struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/rle.inl: In function void draw_lit_rle_sprite(BITMAP*, const RLE_SPRITE*, int, int, int)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/inline/rle.inl:55: error: invalid use of undefined type
struct BITMAP'
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/system.h:31: error: forward declaration of struct BITMAP'

In file included from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro.h:66,

from main.cpp:1:
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/alcompat.h: In function
void clear(BITMAP*)':
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/alcompat.h:33: error: clear_bitmap' undeclared (first use this function)

In file included from C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro.h:77,

from main.cpp:1:
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/alwin.h: At global scope:
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/alwin.h:105: error:
GFX_DRIVER' does not name a type
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/alwin.h:106: error: GFX_DRIVER' does not name a type

C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/alwin.h:107: error:
GFX_DRIVER' does not name a type
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/alwin.h:108: error: GFX_DRIVER' does not name a type
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/alwin.h:109: error:
GFX_DRIVER' does not name a type
C:/Program Files/@Last Software/SketchUp 5/Dev-Cpp/include/allegro/platform/alwin.h:110: error: GFX_DRIVER' does not name a type

main.cpp: In function
int _mangled_main(int, int**)':
main.cpp:8: error: set_color_depth' undeclared (first use this function)
main.cpp:9: error:
GFX_AUTODETECT' undeclared (first use this function)
main.cpp:9: error: set_gfx_mode' undeclared (first use this function)
main.cpp:14: error:
screen' undeclared (first use this function)
main.cpp:14: error: o' undeclared (first use this function)
main.cpp:16: error:
destroy_bitmap' undeclared (first use this function)

make.exe: *** [main.o] Error 1

Uitvoering voltooid

GeoMX
GeoMX
I'm not really sure about all those errors, but I'll comment about some lines in your code:

BITMAP* bac = NULL;DATAFILE *data_pack = NULL;data_pack = load_datafile("texture.dat");draw_sprite(bac, (BITMAP*)data_pack[background].dat, 0, 0);

You never require memory space for your bac BITMAP, you need to call create_bitmap() before being able to use it.

blit(bac,screen,o,o,o,o,800,600);

Those are not "0" (zero, the number), but "o" (O, the letter).

[source lang="cpp"destroy_bitmap(bac);

You're freeing something you never created (bac).

Best wishes,
JJ Enríquez.
Imagination's the limit.
zyvolution
zyvolution
I dat what you said but it still wont compile.

my new code.

#include
#include "data.h"



int main(int argc, int *argv[])
{
allegro_init();
install_keyboard();
set_color_depth(24);
BITMAP *bac = create_bitmap(800,600)
DATAFILE *data_pack = NULL;
set_gfx_mode(GFX_AUTODETECT,800,600,0,0);
data_pack = load_datafile("texture.dat");
draw_sprite(bac, (BITMAP*)data_pack[background].dat, 0, 0);
blit(bac,screen,o,o,o,o,800,600);
readkey();
clear(bac);
destroy_bitmap(bac);
unload_datafile(data_pack);
return 0;
}
END_OF_MAIN();

I dont see whats wrong.
GeoMX
GeoMX
Quote:
Original post by zyvolution
I dat what you said but it still wont compile.


You need a semicolon at the end of every C/C++ instruction:
Quote:

BITMAP *bac = create_bitmap(800,600)

it should be:
Quote:

BITMAP *bac = create_bitmap(800,600);


You didn't correct this line:
Quote:

blit(bac,screen,o,o,o,o,800,600);

Check again, you're using "o", not "0" (zero)! It should be:
Quote:

blit(bac,screen,0,0,0,0,800,600);

See the difference?

Best wishes,
JJ Enríquez (GeoMX).

Imagination's the limit.
zyvolution
zyvolution
Yes i know what you mean :D
But i already had that in c++ something went wrong when i copyed it but it still doesnt work.

EDIT:
Never Mind i got it to work.
I had to re-install c++ :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.