Need it compiled for Windows
Stefan Toman

Hello,

I have written a programm using allegro. I have SuSE 9.1 and compiled it there. But now I need this programm for windows, it is for a competition. Can anybody compile it for me please?

Please give a mailadress so I can mail you the source code.

Thank you!

ReyBrujo

Which Allegro version? I currently have installed 4.2.0.
You can try attaching it if it is not too big.
And moved to the programming forum.

Stefan Toman

I don't know my version, but it's the one on the SuSE 9.1-CD.

I attached the source...

Thank you!

HoHo

I could compile them if you repair these two things within 10min, after that I will be away from computer for couple of hours.

37 C:\DOCUME~1\KALMER\LOCALS~1\TEMP\kugeln-1.cpp `asprintf' undeclared (first use this function)

105 C:\DOCUME~1\KALMER\LOCALS~1\TEMP\kugeln-1.cpp `sleep' undeclared (first use this function)

Stefan Toman

Under Linux it works....

I changed it...

Oscar Giner

Here it is. It needs alleg42.dll.

It sets a graphics mode, but then it pops up a message (I don't know what it means) and it crashes, though.

ReyBrujo

Compiles fine with MinGW 2.95.3-6 with 4.1.14 and 3.2.3 with 4.2.0.

Stefan Toman

<quote>
C:\WINDOWS\Desktop>kugeln.exe
Fehler in .EXE-Datei
[/qoute]

It doesn't work...

I tried it now with WIN98 where I need it...

The popup says "kugeln.exe ist keine zulässige WIN32-Anwendung". Oh, translating...ähm...It is not a good application??? Something like this;)

EDIT: I didn't see your post. Can you give me the file when it "compiles fine"?

ReyBrujo

Oscar's attached file runs fine here, no need to attach mine. You might have downloaded it wrong, try clearing your browser cache and downloading it again. MD5sum for Oscar file is A4EE923C61C9B707D6561FCD4A44BED8, in case you can calculate it.

You will need alleg42.dll too, but it is too heavy to be attached in the forums.

Stefan Toman

Ok, I don't have this file here. Where can I download it?

ReyBrujo

Attached the DLL you need, zipped.

Stefan Toman

KUGELN verursachte einen Fehler durch eine ungültige Seite
in Modul KUGELN.EXE bei 0167:004018ac.
Register:
EAX=00000000 CS=0167 EIP=004018ac EFLGS=00010206
EBX=67a53134 SS=016f ESP=0076fd00 EBP=008906f0
ECX=816ddf18 DS=016f ESI=00000030 FS=7b7f
EDX=00000000 ES=016f EDI=008906b0 GS=0000
Bytes bei CS:EIP:
8b 00 89 c2 c1 ea 1f 01 d0 d1 f8 50 db 04 24 8b
Stapelwerte:
004017f6 00000000 00000000 00000000 00000080 0076ff68 7800e9bc 78031248 ffffffff 0076fe08 780012d7 00000100 00000022 00000030 008906b0 67a4b029

It starts and sets the grapgic and then that...I don't know what to do...

Why can it work under Linux and not under Windows...:'(

Hrvoje Ban

Attachment.

Oscar Giner

You load a bitmap called "kugel.tga". It's in the same folder as the executable?

ReyBrujo

Your program when cannot find the bitmap throws a message box and then crashes. The crash might be the same as the one you are having here. Try running it from the command line instead of double clicking it if that fails.

Stefan Toman

I had it in the folder...

I started it some twenty times and it didn't work anytime...

And now it starts. Don't know why. But this doesn't matter...Funny :D

Do you want to have the grafik too? Its a circle. There should circles roll around an stay, when they meet another. Not really usefull but this was the task of the competition:)

Looks funny...

THANK YOU ALL FOR YOUR HELP!!!

Thread #481763. Printed from Allegro.cc