Allegro gui -problem
pawel559 pawel559

Hi
I want to use at the same time gui and page flipping.
But I have only one of them at the same time.
Is posible to use gui and page flipping together ?
How can I do that ?

CGamesPlay

You can call this function with your currently active bitmap:gui_set_screen(page1);

pawel559 pawel559

Nothing change.
This is my code:

#include <iostream>
#include <allegro.h>
#include <winalleg.h>

/***************************************/
BITMAP *buffer;
BITMAP *page1, *page2;
BITMAP *active_page;
/***************************************/
//SURFACE class
class SURFACE{
public:
BITMAP *surface;
bool rysuj;

void loadimage(char* name);
void free();
void draw(int x,int y,int w,int h,int a,int b);
void TransparentDraw(int x,int y,int w,int h,int a,int b);
};
void SURFACE::loadimage(char* name)
{
rysuj=true;
surface = load_bitmap(name, NULL);
}
void SURFACE::free()
{
destroy_bitmap(surface);
}
void SURFACE::draw(int x,int y,int w,int h,int a,int b)
{

if(rysuj==true){blit(surface, active_page, a, b, x,y, w, h);}

}
void SURFACE::TransparentDraw(int x,int y,int w,int h,int a,int b)
{
if(rysuj==true){masked_blit(surface,active_page,a,b,x,y,w,h);}

}
//////////////////////////////////////////////
SURFACE image;

DIALOG the_dialog[] =
{
{ d_button_proc, 160, 40, 160, 20, 0, 0, 't', 0, 0, 0, (void*)"&Toggle Me!", (void*) NULL, (void*)NULL }

};
int main(void)
{

//init allegro
allegro_init();

install_timer();
install_keyboard();
install_mouse();
install_sound(DIGI_AUTODETECT,MIDI_AUTODETECT,"");

set_color_depth(16);
set_gfx_mode(GFX_AUTODETECT, 800,600,0,0);
set_palette(desktop_palette);

/* now create two video memory bitmaps for the page flipping */
page1 = create_video_bitmap(SCREEN_W, SCREEN_H);
page2 = create_video_bitmap(SCREEN_W, SCREEN_H);
active_page = page2;
clear_keybuf();

///////////////

image.loadimage("a.bmp");

gui_fg_color = makecol(0, 0, 0);
gui_mg_color = makecol(128, 128, 128);
gui_bg_color = makecol(200, 240, 200);
set_dialog_color(the_dialog, gui_fg_color, gui_bg_color);
the_dialog[0].bg = makecol(255, 255, 255);
position_dialog(the_dialog, 200, 2);

while(true)
{

// clear_bitmap(active_page);
/////////////////////

do_dialog(the_dialog, -1);
image.draw(0,0,100,100,0,0);
///////////////////
show_video_bitmap(active_page);
gui_set_screen(active_page);
if (active_page == page1)
active_page = page2;
else
active_page = page1;

if(key[KEY_ESC])break;

// }
}

image.free();
destroy_bitmap(page1);
destroy_bitmap(page2);
return 0;
}
END_OF_MAIN()

CGamesPlay

You set the gui screen to the bitmap on the screen. Don't do that. Set it to the back page, the same one that you do all your drawing to.

Kitty Cat

And do_dialog is blocking. It won't return until the dialog is closed.

pawel559 pawel559

I am not very good speak english ,and I don't understandt evrythink.
Can you improve my code ?

CGamesPlay

I said to do this:

show_video_bitmap(active_page);
if (active_page == page1)
    active_page = page2;
else
    active_page = page1;
gui_set_screen(active_page);

KittyCat says to not use do_dialog and instead use these functions. You need to figure out how to use them yourself:

DIALOG_PLAYER *player = init_dialog(the_dialog, -1);

if(!update_dialog(player))
{
    // Do something with the dialog data
    shutdown_dialog(player);
}

pawel559 pawel559

Now I have other problem ,just look at that http://emugames.cba.pl/file.7z

CGamesPlay

Err, no. I don't have 7z, so I won't even speculate as to whether you gave a description of the problem.

pawel559 pawel559

Now the dialog is flashing.
Is this normal ?

Kitty Cat

Yes, because the dialog only draws once (on whichever bitmap was active at the time) until something makes it draw again. If you're not using a double buffer, you can call:
dialog_message
with MSG_DRAW right before update_dialog.

pawel559 pawel559

It is work ! :D
You are the best.
:)

CGamesPlay

You're welcome, but be warned! We expect to see a completed game from you, with screenshots, soon! :)

pawel559 pawel559

I have one more question .
When I set editbox height nothing change.
Is the height in the editbox const ?
Why ?

My code:
{d_edit_proc ,100, 20, 400, 500, 10, 10,0,0,0,0,(void*)the_string, (void*)NULL, (void*)NULL }

CGamesPlay

The height of the font is constant. You have to make a bigger font yourself :-/

pawel559 pawel559

Do you now any other GUI libary for allegro which can do that ?
I was using allegro gui ,because I need a EDITBOX for my game.

CGamesPlay

Well if you find a program called "ttf2pcx" on the net and use that to make a font that Allegro can read, you can make fonts as big as you like.

miran
Quote:

Do you now any other GUI libary for allegro which can do that ?

Plug! ;D

Third link in my sig. :)

pawel559 pawel559

I am using GCC compiler and I tried instal a MASkinG but I have some problems in build libary.
Is on the web a "MASkinG.a" for download ?

CGamesPlay

You need to post the specific problems that you had.

pawel559 pawel559

In the console I see "Makefiles configured.Now go to the src directory and run 'make' and 'make install' ". But when I go to src directory there isn't any exe files which can be run .:P

CGamesPlay

:P

Stay in the command prompt and run "make" and then run "make install". "Run" means "type in and then press enter" ;)

"make" is a program that comes with your compiler, it's used for automating the build process. Your IDE makes the Makefiles for you, so you don't have to.

pawel559 pawel559

when I run make.exe in the command line I see "*** No targets. Stop." .

Kauhiz

You're running it from the correct directory? And just run "make", not "make.exe"

pawel559 pawel559

I try run make ,and the result was the same.
The directory is correct.

CGamesPlay

Copy the output from the command window to show us what you typed and what the results were. You can copy output by clicking on the command icon (top left icon) and saying Edit->Mark. Select and press enter to copy.

Run make and also run dir :)

pawel559 pawel559

Microsoft Windows XP [Wersja 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\Documents and Settings\PMUZYKA>cd D:\Documents and Settings\PMUZYKA\Pulpit\MA
SkinG-v0.80\MASkinG

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG-v0.80\MASkinG>fixmingw.bat
Makefiles configured. Now go to the src directory
and run 'make' and 'make install'

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG-v0.80\MASkinG>C:\COdeBlocks\bin
\make
C:\COdeBlocks\bin\make: *** No targets. Stop.

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG-v0.80\MASkinG>

Kauhiz

Instead of "C:\COdeBlocks\bin\make" just type "make"?

CGamesPlay

It says to "go to the src" directory. cd src, then make.

pawel559 pawel559

I do that but I see "*** no targets. Stop.".
My log:
Microsoft Windows XP [Wersja 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\Documents and Settings\PMUZYKA>cd D:\Documents and Settings\PMUZYKA\Pulpit\MA
SkinG065\MASkinG

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG065\MASkinG>fixmingw.bat
Makefiles configured. Now go to the src directory
and run 'make' and 'make install'

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG065\MASkinG>C:

C:\>cd C:\COdeBlocks\bin

C:\COdeBlocks\bin>make
make: *** No targets. Stop.

C:\COdeBlocks\bin>

miran

GO TO THE FSCKING SRC DIRECTORY!

That means you should type cd src before running make and not cd C:\COdeBlocks\bin.

pawel559 pawel559

I do that and libary was create ,but it's empty .
My log:
Microsoft Windows XP [Wersja 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\Documents and Settings\PMUZYKA>cd D:\Documents and Settings\PMUZYKA\Pulpit\MA
SkinG

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG>fixmingw.bat
Makefiles configured. Now go to the src directory
and run 'make' and 'make install'

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG>cd src

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG\src>C:\COdeBlocks\bin\make
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/DialogDo.o -c DialogDo.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/DialogDo.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Icon.o -c Icon.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Icon.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/CheckBox.o -c CheckBox.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/CheckBox.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/ClearScreen.o -c ClearScreen.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/ClearScreen.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/DialogObj.o -c DialogObj.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/DialogObj.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Dialog.o -c Dialog.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Dialog.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/DRS.o -c DRS.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/DRS.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/EditText.o -c EditText.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/EditText.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Button.o -c Button.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Button.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/HyperText.o -c HyperText.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/HyperText.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Bitmap.o -c Bitmap.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Bitmap.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Panel.o -c Panel.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Panel.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/PanelRaised.o -c PanelRaised.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/PanelRaised.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/PanelSunken.o -c PanelSunken.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/PanelSunken.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/PanelRidge.o -c PanelRidge.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/PanelRidge.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/PanelGroove.o -c PanelGroove.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/PanelGroove.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/BoxShadow.o -c BoxShadow.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/BoxShadow.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/RadioButton.o -c RadioButton.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/RadioButton.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Box.o -c Box.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Box.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Slider.o -c Slider.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Slider.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/HiddenList.o -c HiddenList.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/HiddenList.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Text.o -c Text.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Text.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/WinButton.o -c WinButton.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/WinButton.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Skin.o -c Skin.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Skin.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/List.o -c List.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/List.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Scroller.o -c Scroller.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Scroller.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/MASkinG.o -c MASkinG.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/MASkinG.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Window.o -c Window.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Window.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/WinBox.o -c WinBox.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/WinBox.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Keyboard.o -c Keyboard.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Keyboard.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Progress.o -c Progress.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Progress.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Log.o -c Log.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Log.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Console.o -c Console.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Console.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Alert.o -c Alert.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Alert.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Alert3.o -c Alert3.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Alert3.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/FileSelect.o -c FileSelect.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/FileSelect.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Settings.o -c Settings.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Settings.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Rect.o -c Rect.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Rect.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Timer.o -c Timer.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Timer.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Tab.o -c Tab.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Tab.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Font.o -c Font.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Font.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/MusicPlayer.o -c MusicPlayer.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/MusicPlayer.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/MidiPlayer.o -c MidiPlayer.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/MidiPlayer.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/WinIcon.o -c WinIcon.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/WinIcon.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/MessageBox.o -c MessageBox.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/MessageBox.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/ColorSel.o -c ColorSel.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/ColorSel.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Separator.o -c Separator.cpp
g++: installation problem, cannot exec `cc1plus': No such file or directory
C:\COdeBlocks\bin\make: [../obj/mingw/Separator.o] Error 1 (ignored)
ar src ../lib/mingw/libmasking.a ../obj/mingw/DialogDo.o ../obj/mingw/Icon.o ../
obj/mingw/CheckBox.o ../obj/mingw/ClearScreen.o ../obj/mingw/DialogObj.o ../obj/
mingw/Dialog.o ../obj/mingw/DRS.o ../obj/mingw/EditText.o ../obj/mingw/Button.o
../obj/mingw/HyperText.o ../obj/mingw/Bitmap.o ../obj/mingw/Panel.o ../obj/mingw
/PanelRaised.o ../obj/mingw/PanelSunken.o ../obj/mingw/PanelRidge.o ../obj/mingw
PanelGroove.o ../obj/mingw/BoxShadow.o ../obj/mingw/RadioButton.o ../obj/mingw
Box.o ../obj/mingw/Slider.o ../obj/mingw/HiddenList.o ../obj/mingw/Text.o ../obj
/mingw/WinButton.o ../obj/mingw/Skin.o ../obj/mingw/List.o ../obj/mingw/Scroller
.o ../obj/mingw/MASkinG.o ../obj/mingw/Window.o ../obj/mingw/WinBox.o ../obj/min
gw/Keyboard.o ../obj/mingw/Progress.o ../obj/mingw/Log.o ../obj/mingw/Console.o
../obj/mingw/Alert.o ../obj/mingw/Alert3.o ../obj/mingw/FileSelect.o ../obj/ming
w/Settings.o ../obj/mingw/Rect.o ../obj/mingw/Timer.o ../obj/mingw/Tab.o ../obj/
mingw/Font.o ../obj/mingw/MusicPlayer.o ../obj/mingw/MidiPlayer.o ../obj/mingw/W
inIcon.o ../obj/mingw/MessageBox.o ../obj/mingw/ColorSel.o ../obj/mingw/Separato
r.o
ar: ../obj/mingw/DialogDo.o: No such file or directory
C:\COdeBlocks\bin\make: [../lib/mingw/libmasking.a] Error 1 (ignored)

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG\src>

miran

Put C:\CodeBlocks\bin in your PATH. Like this:

set PATH=%PATH%;C:\CodeBlocks\bin

Then repeat make.

pawel559 pawel559

Nothing change the libary is empty:
My log:
Font.cpp: At global scope:
Font.cpp:404: error: expected init-declarator before '*' token
Font.cpp:404: error: expected `,' or `;' before '*' token
Font.cpp:470: error: expected init-declarator before '*' token
Font.cpp:470: error: expected `,' or `;' before '*' token
Font.cpp:509: error: expected init-declarator before '*' token
Font.cpp:509: error: expected `,' or `;' before '*' token
Font.cpp: In function `void datedit_find_character(BITMAP*, int*, int*, int*, in
t*)':
Font.cpp:561: error: `bitmap_color_depth' undeclared (first use this function)
Font.cpp:566: error: `makecol_depth' undeclared (first use this function)
Font.cpp:571: error: `getpixel' undeclared (first use this function)
Font.cpp:577: error: invalid use of undefined type `struct BITMAP'
C:/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/internal/
aintern.h:766: error: forward declaration of `struct BITMAP'
Font.cpp:580: error: invalid use of undefined type `struct BITMAP'
C:/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/internal/
aintern.h:766: error: forward declaration of `struct BITMAP'
Font.cpp:592: error: invalid use of undefined type `struct BITMAP'
C:/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/internal/
aintern.h:766: error: forward declaration of `struct BITMAP'
Font.cpp:599: error: invalid use of undefined type `struct BITMAP'
C:/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/internal/
aintern.h:766: error: forward declaration of `struct BITMAP'
Font.cpp: At global scope:
Font.cpp:608: error: `FONT_GLYPH' was not declared in this scope
Font.cpp:608: error: `gl' was not declared in this scope
Font.cpp:608: error: expected primary-expression before "int"
Font.cpp:609: error: initializer expression list treated as compound expression
Font.cpp:609: error: expected `,' or `;' before '{' token
Font.cpp: In function `int import_bitmap_font_color(BITMAP**, int)':
Font.cpp:656: error: `create_bitmap_ex' undeclared (first use this function)
Font.cpp:658: error: `clear_to_color' undeclared (first use this function)
Font.cpp:662: error: `blit' undeclared (first use this function)
Font.cpp: In function `int bitmap_font_ismono(BITMAP*)':
Font.cpp:679: error: invalid use of undefined type `struct BITMAP'
C:/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/internal/
aintern.h:766: error: forward declaration of `struct BITMAP'
Font.cpp:680: error: invalid use of undefined type `struct BITMAP'
C:/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/internal/
aintern.h:766: error: forward declaration of `struct BITMAP'
Font.cpp:681: error: `getpixel' undeclared (first use this function)
Font.cpp: In function `FONT_COLOR_DATA* upgrade_to_color_data(FONT_MONO_DATA*)':

Font.cpp:698: error: `_al_malloc' undeclared (first use this function)
Font.cpp:704: error: 'struct FONT_COLOR_DATA' has no member named 'bitmaps'
Font.cpp:707: error: `text_mode' undeclared (first use this function)
Font.cpp:710: error: `FONT_GLYPH' undeclared (first use this function)
Font.cpp:710: error: `g' undeclared (first use this function)
Font.cpp:710: error: 'struct FONT_MONO_DATA' has no member named 'glyphs'
Font.cpp:711: error: `create_bitmap_ex' undeclared (first use this function)
Font.cpp:712: error: `clear_to_color' undeclared (first use this function)
Font.cpp:714: error: invalid use of undefined type `struct BITMAP'
C:/CodeBlocks/bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/internal/
aintern.h:766: error: forward declaration of `struct BITMAP'
Font.cpp:720: error: `free' undeclared (first use this function)
Font.cpp:723: error: 'struct FONT_MONO_DATA' has no member named 'glyphs'
Font.cpp: At global scope:
Font.cpp:731: error: variable or field `upgrade_to_color' declared void
Font.cpp:731: error: `FONT' was not declared in this scope
Font.cpp:731: error: `f' was not declared in this scope
Font.cpp:732: error: expected `,' or `;' before '{' token
Font.cpp:774: error: expected init-declarator before '*' token
Font.cpp:774: error: expected `,' or `;' before '*' token
Font.cpp:862: error: expected init-declarator before '*' token
Font.cpp:862: error: expected `,' or `;' before '*' token
Font.cpp: In member function `MASFont* MASFont::Load(const char*)':
Font.cpp:952: error: `get_extension' undeclared (first use this function)
Font.cpp:952: error: `uconvert_ascii' undeclared (first use this function)
Font.cpp:952: error: `ustricmp' undeclared (first use this function)
Font.cpp:958: error: `af' undeclared (first use this function)
Font.cpp:958: error: `TRUE' undeclared (first use this function)
Font.cpp:958: error: `import_bitmap_font' undeclared (first use this function)
Font.cpp:963: error: `import_scripted_font' undeclared (first use this function)

Font.cpp:968: error: `import_it_font' undeclared (first use this function)
Font.cpp:973: error: `PACKFILE' undeclared (first use this function)
Font.cpp:973: error: `f' undeclared (first use this function)
Font.cpp:973: error: `F_READ' undeclared (first use this function)
Font.cpp:973: error: `pack_fopen' undeclared (first use this function)
Font.cpp:975: error: `pack_igetl' undeclared (first use this function)
Font.cpp:976: error: `pack_fclose' undeclared (first use this function)
Font.cpp:978: error: `import_grx_font' undeclared (first use this function)
Font.cpp:982: error: `import_bios_font' undeclared (first use this function)
Font.cpp:992: error: `ff' undeclared (first use this function)
Font.cpp:992: error: `uconvert_toascii' undeclared (first use this function)
Font.cpp:992: error: `alfont_load_font' undeclared (first use this function)
Font.cpp:999: error: `font' undeclared (first use this function)
C:\COdeBlocks\bin\make: [../obj/mingw/Font.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/MusicPlayer.o -c MusicPlayer.cpp
In file included from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/MusicPlayer.h:18,
from MusicPlayer.cpp:15:
../include/MASkinG/global.h:18:20: alfont.h: No such file or directory
In file included from ../include/MASkinG/global.h:20,
from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/MusicPlayer.h:18,
from MusicPlayer.cpp:15:
../include/MASkinG/Font.h:27: error: ISO C++ forbids declaration of `ALFONT_FONT
' with no type
../include/MASkinG/Font.h:27: error: expected `;' before '*' token
../include/MASkinG/Font.h:36: error: expected `)' before '*' token
../include/MASkinG/Font.h:65: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Font.h:65: error: ISO C++ forbids declaration of `f' with no
type
In file included from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/MusicPlayer.h:18,
from MusicPlayer.cpp:15:
../include/MASkinG/Skin.h:184: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Skin.h:184: error: ISO C++ forbids declaration of `f' with no
type
C:\COdeBlocks\bin\make: [../obj/mingw/MusicPlayer.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/MidiPlayer.o -c MidiPlayer.cpp
In file included from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/MusicPlayer.h:18,
from ../include/MASkinG/MidiPlayer.h:19,
from MidiPlayer.cpp:15:
../include/MASkinG/global.h:18:20: alfont.h: No such file or directory
In file included from ../include/MASkinG/global.h:20,
from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/MusicPlayer.h:18,
from ../include/MASkinG/MidiPlayer.h:19,
from MidiPlayer.cpp:15:
../include/MASkinG/Font.h:27: error: ISO C++ forbids declaration of `ALFONT_FONT
' with no type
../include/MASkinG/Font.h:27: error: expected `;' before '*' token
../include/MASkinG/Font.h:36: error: expected `)' before '*' token
../include/MASkinG/Font.h:65: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Font.h:65: error: ISO C++ forbids declaration of `f' with no
type
In file included from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/MusicPlayer.h:18,
from ../include/MASkinG/MidiPlayer.h:19,
from MidiPlayer.cpp:15:
../include/MASkinG/Skin.h:184: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Skin.h:184: error: ISO C++ forbids declaration of `f' with no
type
C:\COdeBlocks\bin\make: [../obj/mingw/MidiPlayer.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/WinIcon.o -c WinIcon.cpp
In file included from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Text.h:18,
from ../include/MASkinG/Button.h:18,
from ../include/MASkinG/WinButton.h:18,
from ../include/MASkinG/WinIcon.h:18,
from WinIcon.cpp:15:
../include/MASkinG/global.h:18:20: alfont.h: No such file or directory
In file included from ../include/MASkinG/global.h:20,
from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Text.h:18,
from ../include/MASkinG/Button.h:18,
from ../include/MASkinG/WinButton.h:18,
from ../include/MASkinG/WinIcon.h:18,
from WinIcon.cpp:15:
../include/MASkinG/Font.h:27: error: ISO C++ forbids declaration of `ALFONT_FONT
' with no type
../include/MASkinG/Font.h:27: error: expected `;' before '*' token
../include/MASkinG/Font.h:36: error: expected `)' before '*' token
../include/MASkinG/Font.h:65: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Font.h:65: error: ISO C++ forbids declaration of `f' with no
type
In file included from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Text.h:18,
from ../include/MASkinG/Button.h:18,
from ../include/MASkinG/WinButton.h:18,
from ../include/MASkinG/WinIcon.h:18,
from WinIcon.cpp:15:
../include/MASkinG/Skin.h:184: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Skin.h:184: error: ISO C++ forbids declaration of `f' with no
type
C:\COdeBlocks\bin\make: [../obj/mingw/WinIcon.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/MessageBox.o -c MessageBox.cpp
In file included from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Window.h:18,
from ../include/MASkinG/MessageBox.h:18,
from MessageBox.cpp:15:
../include/MASkinG/global.h:18:20: alfont.h: No such file or directory
In file included from ../include/MASkinG/global.h:20,
from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Window.h:18,
from ../include/MASkinG/MessageBox.h:18,
from MessageBox.cpp:15:
../include/MASkinG/Font.h:27: error: ISO C++ forbids declaration of `ALFONT_FONT
' with no type
../include/MASkinG/Font.h:27: error: expected `;' before '*' token
../include/MASkinG/Font.h:36: error: expected `)' before '*' token
../include/MASkinG/Font.h:65: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Font.h:65: error: ISO C++ forbids declaration of `f' with no
type
In file included from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Window.h:18,
from ../include/MASkinG/MessageBox.h:18,
from MessageBox.cpp:15:
../include/MASkinG/Skin.h:184: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Skin.h:184: error: ISO C++ forbids declaration of `f' with no
type
C:\COdeBlocks\bin\make: [../obj/mingw/MessageBox.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/ColorSel.o -c ColorSel.cpp
In file included from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Window.h:18,
from ../include/MASkinG/ColorSel.h:18,
from ColorSel.cpp:17:
../include/MASkinG/global.h:18:20: alfont.h: No such file or directory
In file included from ../include/MASkinG/global.h:20,
from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Window.h:18,
from ../include/MASkinG/ColorSel.h:18,
from ColorSel.cpp:17:
../include/MASkinG/Font.h:27: error: ISO C++ forbids declaration of `ALFONT_FONT
' with no type
../include/MASkinG/Font.h:27: error: expected `;' before '*' token
../include/MASkinG/Font.h:36: error: expected `)' before '*' token
../include/MASkinG/Font.h:65: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Font.h:65: error: ISO C++ forbids declaration of `f' with no
type
In file included from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Window.h:18,
from ../include/MASkinG/ColorSel.h:18,
from ColorSel.cpp:17:
../include/MASkinG/Skin.h:184: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Skin.h:184: error: ISO C++ forbids declaration of `f' with no
type
C:\COdeBlocks\bin\make: [../obj/mingw/ColorSel.o] Error 1 (ignored)
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Separator.o -c Separator.cpp
In file included from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Separator.h:18,
from Separator.cpp:15:
../include/MASkinG/global.h:18:20: alfont.h: No such file or directory
In file included from ../include/MASkinG/global.h:20,
from ../include/MASkinG/Skin.h:19,
from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Separator.h:18,
from Separator.cpp:15:
../include/MASkinG/Font.h:27: error: ISO C++ forbids declaration of `ALFONT_FONT
' with no type
../include/MASkinG/Font.h:27: error: expected `;' before '*' token
../include/MASkinG/Font.h:36: error: expected `)' before '*' token
../include/MASkinG/Font.h:65: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Font.h:65: error: ISO C++ forbids declaration of `f' with no
type
In file included from ../include/MASkinG/DialogObj.h:18,
from ../include/MASkinG/Dialog.h:18,
from ../include/MASkinG/Separator.h:18,
from Separator.cpp:15:
../include/MASkinG/Skin.h:184: error: `ALFONT_FONT' has not been declared
../include/MASkinG/Skin.h:184: error: ISO C++ forbids declaration of `f' with no
type
C:\COdeBlocks\bin\make: [../obj/mingw/Separator.o] Error 1 (ignored)
ar src ../lib/mingw/libmasking.a ../obj/mingw/DialogDo.o ../obj/mingw/Icon.o ../
obj/mingw/CheckBox.o ../obj/mingw/ClearScreen.o ../obj/mingw/DialogObj.o ../obj/
mingw/Dialog.o ../obj/mingw/DRS.o ../obj/mingw/EditText.o ../obj/mingw/Button.o
../obj/mingw/HyperText.o ../obj/mingw/Bitmap.o ../obj/mingw/Panel.o ../obj/mingw
/PanelRaised.o ../obj/mingw/PanelSunken.o ../obj/mingw/PanelRidge.o ../obj/mingw
PanelGroove.o ../obj/mingw/BoxShadow.o ../obj/mingw/RadioButton.o ../obj/mingw
Box.o ../obj/mingw/Slider.o ../obj/mingw/HiddenList.o ../obj/mingw/Text.o ../obj
/mingw/WinButton.o ../obj/mingw/Skin.o ../obj/mingw/List.o ../obj/mingw/Scroller
.o ../obj/mingw/MASkinG.o ../obj/mingw/Window.o ../obj/mingw/WinBox.o ../obj/min
gw/Keyboard.o ../obj/mingw/Progress.o ../obj/mingw/Log.o ../obj/mingw/Console.o
../obj/mingw/Alert.o ../obj/mingw/Alert3.o ../obj/mingw/FileSelect.o ../obj/ming
w/Settings.o ../obj/mingw/Rect.o ../obj/mingw/Timer.o ../obj/mingw/Tab.o ../obj/
mingw/Font.o ../obj/mingw/MusicPlayer.o ../obj/mingw/MidiPlayer.o ../obj/mingw/W
inIcon.o ../obj/mingw/MessageBox.o ../obj/mingw/ColorSel.o ../obj/mingw/Separato
r.o
ar: ../obj/mingw/DialogDo.o: No such file or directory
C:\COdeBlocks\bin\make: [../lib/mingw/libmasking.a] Error 1 (ignored)

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG\src>

miran

You must first install AllegroFont. Just like the instructions said. ::)

pawel559 pawel559

Now I have other problem
My log:
Microsoft Windows XP [Wersja 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\Documents and Settings\PMUZYKA>cd D:\Documents and Settings\PMUZYKA\Pulpit\Al
Font

D:\Documents and Settings\PMUZYKA\Pulpit\AlFont>fixdos.bat
Converting files to DOS format...
Nazwa 'utod' nie jest rozpoznawana jako polecenie wewnętrzne lub zewnętrzne,
program wykonywalny lub plik wsadowy.
D:\Documents and Settings\PMUZYKA\Pulpit\AlFont>cd src

D:\Documents and Settings\PMUZYKA\Pulpit\AlFont\src>cd D:\Documents and Settings
\PMUZYKA\Pulpit\AlFont

D:\Documents and Settings\PMUZYKA\Pulpit\AlFont>set PATH=%PATH%;C:\CodeBlocks\bi
n

D:\Documents and Settings\PMUZYKA\Pulpit\AlFont>C:\COdeBlocks\bin\make
gcc -c -Wall -O2 -march=pentium -fomit-frame-pointer -finline-functions -ffast-m
ath -Ifreetype/include -Iinclude src/alfont.c -o obj/djgpp/static/alfont.o
In file included from src/alfont.c:17:
include/alfont.h:464:3: warning: no newline at end of file
src/alfont.c: In function `alfont_textout_aa_ex':
src/alfont.c:876: error: invalid lvalue in unary `&'
src/alfont.c:876: error: invalid lvalue in unary `&'
src/alfont.c: In function `alfont_textout_ex':
src/alfont.c:1962: error: invalid lvalue in unary `&'
src/alfont.c:1962: error: invalid lvalue in unary `&'
src/alfont.c: In function `alfont_text_length':
src/alfont.c:2740: error: invalid lvalue in unary `&'
src/alfont.c:2740: error: invalid lvalue in unary `&'
src/alfont.c: In function `alfont_ugetc':
src/alfont.c:3052: warning: unused variable `lpszW_pointer'
C:\COdeBlocks\bin\make: *** [alfont.o] Error 1

D:\Documents and Settings\PMUZYKA\Pulpit\AlFont>

CGamesPlay

Miran... why on Earth does your makefile ignore every error it gets?

pawel559 pawel559

My game need gui .Is CGUI easy for install ?

nonnus29

You guys rock. I'm bookmarking this thread to reference in the next 'no one helps newbs' thread.

8-)

miran
Quote:

Miran... why on Earth does your makefile ignore every error it gets?

I don't know. I wrote it (actually copy-pasted it from somewhere else) around about a long time ago when I knew nothing about makefiles. Now I'm older and wiser so I could probably fix it, but the problem now is that I'm lazy.

Quote:

My game need gui .Is CGUI easy for install ?

Probably as easy as most other libs and easier than some.

About AllegroFont, you need v1.92, not 2.xx.

pawel559 pawel559

Microsoft Windows XP [Wersja 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\Documents and Settings\PMUZYKA>cd D:\Documents and Settings\PMUZYKA\Pulpit\MA
SkinG065\MASkinG

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG065\MASkinG>fixmingw.bat
Makefiles configured. Now go to the src directory
and run 'make' and 'make install'

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG065\MASkinG>cd src

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG065\MASkinG\src>set PATH=%PATH%;
C:\CodeBlocks\bin

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG065\MASkinG\src>C:\COdeBlocks\bi
n\make
g++ -O2 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fpeephole -s
-o ../obj/mingw/Font.o -c Font.cpp
Font.cpp: In member function `void MASFont::Textout(BITMAP*, const char*, int, i
nt, int, int)':
Font.cpp:96: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/.
./lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:96: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/.
./lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:97: warning: `textout' is deprecated (declared at C:/CodeBlocks/bin/../
lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:157)
Font.cpp:97: warning: `textout' is deprecated (declared at C:/CodeBlocks/bin/../
lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:157)
Font.cpp: In member function `void MASFont::AATextout(BITMAP*, const char*, int,
int, int, int)':
Font.cpp:107: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:107: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:108: warning: `textout' is deprecated (declared at C:/CodeBlocks/bin/..
/lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:157)
Font.cpp:108: warning: `textout' is deprecated (declared at C:/CodeBlocks/bin/..
/lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:157)
Font.cpp: In member function `void MASFont::TextoutCentre(BITMAP*, const char*,
int, int, int, int)':
Font.cpp:123: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:123: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:124: warning: `textout_centre' is deprecated (declared at C:/CodeBlocks
/bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:162)
Font.cpp:124: warning: `textout_centre' is deprecated (declared at C:/CodeBlocks
/bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:162)
Font.cpp: In member function `void MASFont::AATextoutCentre(BITMAP*, const char*
, int, int, int, int)':
Font.cpp:134: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:134: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:135: warning: `textout_centre' is deprecated (declared at C:/CodeBlocks
/bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:162)
Font.cpp:135: warning: `textout_centre' is deprecated (declared at C:/CodeBlocks
/bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:162)
Font.cpp: In member function `void MASFont::TextoutRight(BITMAP*, const char*, i
nt, int, int, int)':
Font.cpp:150: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:150: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:151: warning: `textout_right' is deprecated (declared at C:/CodeBlocks/
bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:167)
Font.cpp:151: warning: `textout_right' is deprecated (declared at C:/CodeBlocks/
bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:167)
Font.cpp: In member function `void MASFont::AATextoutRight(BITMAP*, const char*,
int, int, int, int)':
Font.cpp:161: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:161: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:162: warning: `textout_right' is deprecated (declared at C:/CodeBlocks/
bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:167)
Font.cpp:162: warning: `textout_right' is deprecated (declared at C:/CodeBlocks/
bin/../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:167)
Font.cpp: In function `FONT* import_bios_font(const char*)':
Font.cpp:485: error: 'struct PACKFILE' has no member named 'todo'
Font.cpp: In function `FONT_COLOR_DATA* upgrade_to_color_data(FONT_MONO_DATA*)':

Font.cpp:707: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
Font.cpp:707: warning: `text_mode' is deprecated (declared at C:/CodeBlocks/bin/
../lib/gcc/mingw32/3.4.4/../../../../include/allegro/alcompat.h:155)
C:\COdeBlocks\bin\make: [../obj/mingw/Font.o] Error 1 (ignored)
ar src ../lib/mingw/libmasking.a ../obj/mingw/DialogDo.o ../obj/mingw/Icon.o ../
obj/mingw/CheckBox.o ../obj/mingw/ClearScreen.o ../obj/mingw/DialogObj.o ../obj/
mingw/Dialog.o ../obj/mingw/DRS.o ../obj/mingw/EditText.o ../obj/mingw/Button.o
../obj/mingw/HyperText.o ../obj/mingw/Bitmap.o ../obj/mingw/Panel.o ../obj/mingw
/PanelRaised.o ../obj/mingw/PanelSunken.o ../obj/mingw/PanelRidge.o ../obj/mingw
PanelGroove.o ../obj/mingw/BoxShadow.o ../obj/mingw/RadioButton.o ../obj/mingw
Box.o ../obj/mingw/Slider.o ../obj/mingw/HiddenList.o ../obj/mingw/Text.o ../obj
/mingw/WinButton.o ../obj/mingw/Skin.o ../obj/mingw/List.o ../obj/mingw/Scroller
.o ../obj/mingw/MASkinG.o ../obj/mingw/Window.o ../obj/mingw/WinBox.o ../obj/min
gw/Keyboard.o ../obj/mingw/Progress.o ../obj/mingw/Log.o ../obj/mingw/Console.o
../obj/mingw/Alert.o ../obj/mingw/Alert3.o ../obj/mingw/FileSelect.o ../obj/ming
w/Settings.o ../obj/mingw/Rect.o ../obj/mingw/Timer.o ../obj/mingw/Tab.o ../obj/
mingw/Font.o ../obj/mingw/MusicPlayer.o ../obj/mingw/MidiPlayer.o ../obj/mingw/W
inIcon.o ../obj/mingw/MessageBox.o ../obj/mingw/ColorSel.o ../obj/mingw/Separato
r.o
ar: ../obj/mingw/Font.o: No such file or directory
C:\COdeBlocks\bin\make: [../lib/mingw/libmasking.a] Error 1 (ignored)

D:\Documents and Settings\PMUZYKA\Pulpit\MASkinG065\MASkinG\src>

miran

edit: nevermind

CGamesPlay

Please start using code tags to paste long segments. Click the Help link in the Reply box if you don't know how.

Quote:

Font.cpp:485: error: 'struct PACKFILE' has no member named 'todo'

That's the only error you've gotten. Very strange. Miran? :)

miran
Quote:

That's the only error you've gotten. Very strange. Miran?

That particular piece of code was copied&pasted from the Grabber font loader plugin. I didn't write it. I didn't even read it.

As for the warnings, there are preprocessor checks in there to make sure appropriate code is used on different versions of Allegro. It looks like the 4.0 code is being compiled for 4.2. Which means there's something wrong with the OP's copy of Allegro. Or something...

Thread #590046. Printed from Allegro.cc