In Windows Code::Blocks, it says something about mangled_main and winmain... I post the full error later.
Type: Posts; User: jpcanaverde
In Windows Code::Blocks, it says something about mangled_main and winmain... I post the full error later.
Ok, so now the program works. It was a little-little thing: The filename was named ubuntu.bmp, and in the code I had Ubuntu.bmp.
So... The program works. That's a fact. But it just works on my...
I asked for help in the Allegro forums too.
[Help] Destroy bitmaps
Now this is more Allegro-based... Hope someone can help me there.
Ok, noticed now that when the program gets to this part:
(...)
bmp = load_bitmap("6.bmp", palette);
draw_sprite(screen, bmp, 0, 255);
sleepTime=35;
sleep(sleepTime);
Ok, finally did it! I changed the textout's with images, and then inserted some sleeptime's and voilá!
My final, working code:
#include <stdio.h>
#include <allegro.h>
int main(void)
I asked Google, but he didn't retreave what I want... Ignore the textouts. Tell me about the pixels.
I have a question about the textout pixels.
It has, for example:
255,255,255
What's the number I have to change to put 38 pixels down? And I have to increase or decrease the number?
E...
How do I put different sleeptime's seconds? And don't want the same time. I'm almost there...
I typed:
(...)
int sleepTime;
(...)
I'm in class. I really need some help...
How much pixels are a line?
I tried to put a blank place in the screen, and pressing key to pass images, but it goes way too slow, and I can't get out, I had to turn off the computer to get out. Well, at least I got one line...
Ok, got it. Always learning...
Yes. It's the textout function. It doesn't work etiher.
I tried to run with the console, but it does the same. Goes full-screen, and displays the images. Not the text.
Cool. :D
Does someone know why my text doesn't display? It's weird. The idea it's to display text and images, in order, like a doc.
Example:
[Image]
Bla bla bla bla....
Bla bla bla bla...
Instead of building an exe, building an sh.
But text isn't about graphics. :D Just kidding. Thank's for all.
So... Can somebody help me? My present code:
//Este programa foi feito por X....
.sh is a Linux executable. I did a sleep between images/text... Now the images display properly, but the text doesn't show up. I tried with the normal printf and textout (allegro).
But we have...
I mean... .sh. Linux executable. Now I'm trying to put a sleep between every image/text...
I compiled it to sh and does the same.
THANK YOU. Now it runs, but not as I thought it would.
It was supposed to be like a doc. It would print the text and the images. It would display the first image at up, and the following text and...
I'm sending you a PM with the source then. Thank you very much. If you can compile with Ubuntu, then I'l compile with Windows with the changes... I really need an .exe, because it's for school, and...
What options and libs do I have to put? E typed this in Windows and Ubuntu:
gcc -Wall -c -o main.o main.c
gcc -Wall -o main.exe main.o libaldat.a liballd.a liballd_s.a liballeg.a...
Error:
>gcc -pedantic -Os -c main.c -o main.o -std=c99
>Exit code: 0
>make
gcc -Wall -O3 -o main.exe main.c
/tmp/ccFND2jH.o: In function `main':
main.c:(.text+0x32): undefined reference to...
Ok, no errors compiling. But I'm having some trouble buiding. :D
I have to build an .exe file. I tried numerous times, in Ubuntu with code blocks + allegro + mingw and in Windows with the same....
So... Now my error is other... Can you help me? :X Please?
I just copy/pasted Jeff's code.