Using windows .o files under linux

Linux specific questions.
Post Reply
{Nathan}
Posts: 301
Joined: Jun 04, 2005 15:18
Location: Ohio
Contact:

Using windows .o files under linux

Post by {Nathan} »

In my quest to make Mappy (tilemap.co.uk/mappy.php) to work in FB, yetifoot provided my with this (http://www.streetcds.co.uk/mappy.zip) awsome link. I got it to compile under windows using Wine (too lazy to reboot to windoze), but when I run

Code: Select all

fbc proja.bas mappyal.o
It returns:

Code: Select all

mappyal.o: file not recognized: File format not recognized
In other words, how can I compile a windows object file under linux?
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Post by D.J.Peters »

First an *.o file are precompiled you mean how to link them.
How do you create the object file with any M$ compiler or with GNU tools?

I'm quiet sure the formats not same eventualy exist any useful -switches for the linking stage with ld.

For my self i use the same code on Lin and Win but i create every time two versions
Lin fbc any.bas -x anywin
Win fbc any.bas -x anylin

and in the inlude files i write
#ifdef __FB_WIN32__
# inclib "anywin"
#else
# inclib "anylin"
#endif

but this are offtopic for your *.o file

I hope the FB dev team can give you the right answer.

Joshy
yetifoot
Posts: 1710
Joined: Sep 11, 2005 7:08
Location: England
Contact:

Post by yetifoot »

I tried to recompile for linux, but found my linux does not include allegro.

Maybe you could try the mappy versions for OpenGL, or SDL, or allegro if you have it on your distro.

It's actually pretty easy to compile mappy, there are instructions with it, it's just a simple one line command to gcc.

gcc mappyal.c -O2 -Wall -c -o mappyal.o
{Nathan}
Posts: 301
Joined: Jun 04, 2005 15:18
Location: Ohio
Contact:

Post by {Nathan} »

Ugh!

Code: Select all

nathan@nathan-pc:~/code/mappy$ gcc mappyal.c -O2 -Wall -c -o mappyal.o
gcc: mappyal.c: No such file or directory
gcc: no input files
nathan@nathan-pc:~/code/mappy$ ls
alleg40.dll  mappyal.bi  mappywa.rc  proja.bas~  README.TXT
BUILDIT.BAT  mappyal.o   MYICON.ICO  proja.exe
BUILDWA.BAT  mappy.c     proja.bas   Proja.fmp
...
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Post by D.J.Peters »

nathan@nathan-pc:~/code/mappy$ gcc mappy.c -O2 -Wall -c -o mappyal.o
{Nathan}
Posts: 301
Joined: Jun 04, 2005 15:18
Location: Ohio
Contact:

Post by {Nathan} »

...

And I even checked for typos. Thanks for the ultra-fast reply.

And then I get a ton of errors. Yetifoot, would you mind sending me a pre-compiled version? You could email it (nathant93@gmail.com) or I can download it, but I got so many errors and warnings I couldn't even read them all (terminal won't scroll that far)! Anyway, heres what I could see.

Code: Select all

o/alcompat.h:219)
mappy.c: In function ‘RenderBlockPan’:
mappy.c:2168: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c:2169: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:2170: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:2171: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:2184: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2204: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2206: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2208: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘RenderStrPart’:
mappy.c:2222: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2223: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2236: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2237: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2248: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2249: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘ImportBlock’:
mappy.c:2267: warning: ‘file_select’ is deprecated (declared at /usr/include/allegro/alcompat.h:155)
mappy.c:2373: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2374: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2375: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2386: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘RenderBlockIcons’:
mappy.c:2487: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2489: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2491: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2493: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2495: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2497: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2500: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2503: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘RenderGPan’:
mappy.c:2702: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2703: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2704: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2705: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2706: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2707: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2708: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2709: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘RenderG’:
mappy.c:2734: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2735: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2748: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2749: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2761: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2762: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘DrawBlockGraphic’:
mappy.c:2778: warning: pointer targets in assignment differ in signedness
mappy.c:2834: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c: In function ‘DrawColourSelector’:
mappy.c:2848: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2853: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2891: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2894: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2897: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2900: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘DrawEditGraphic’:
mappy.c:2939: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:2940: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2941: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2942: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2943: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2944: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2945: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2946: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2947: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:2948: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘PutPixelinBlock’:
mappy.c:2965: warning: pointer targets in assignment differ in signedness
mappy.c:2991: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c: In function ‘PickColour’:
mappy.c:3127: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:3128: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3135: warning: pointer targets in assignment differ in signedness
mappy.c:3161: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:3162: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘ChangePaletteValue’:
mappy.c:3213: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:3214: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3215: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3216: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3217: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3218: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3220: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3221: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘ShiftGLeft’:
mappy.c:3270: warning: pointer targets in assignment differ in signedness
mappy.c: In function ‘ShiftGRight’:
mappy.c:3310: warning: pointer targets in assignment differ in signedness
mappy.c: In function ‘ShiftGUp’:
mappy.c:3354: warning: pointer targets in assignment differ in signedness
mappy.c: In function ‘ShiftGDown’:
mappy.c:3383: warning: pointer targets in assignment differ in signedness
mappy.c: In function ‘EditBlockGraphic’:
mappy.c:3413: warning: pointer targets in assignment differ in signedness
mappy.c:3432: warning: pointer targets in assignment differ in signedness
mappy.c:3449: warning: pointer targets in assignment differ in signedness
mappy.c: In function ‘SelectNewGraphic’:
mappy.c:3528: warning: pointer targets in assignment differ in signedness
mappy.c:3528: warning: pointer targets in assignment differ in signedness
mappy.c: In function ‘BlockSection’:
mappy.c:3659: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c: In function ‘RenderAnimCur’:
mappy.c:3761: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:3761: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3773: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c:3775: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:3778: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:3781: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:3789: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c:3791: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:3794: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:3797: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:3808: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:3809: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3810: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘RenderAnimCon’:
mappy.c:3822: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:3832: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3833: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3834: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3835: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3836: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3837: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3838: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘ShowBlockAniGraphics’:
mappy.c:3865: warning: pointer targets in assignment differ in signedness
mappy.c: In function ‘RenderAnimStr’:
mappy.c:3899: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:3905: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:3906: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3918: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:3919: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:3930: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:3931: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘RenderEAScreen’:
mappy.c:4184: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4186: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4187: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4188: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4190: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4204: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4204: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4215: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c:4217: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4220: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4223: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4228: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4232: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4234: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4237: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4239: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4240: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4241: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4242: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4257: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c:4259: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4262: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4265: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4287: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4287: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘DelayPlus’:
mappy.c:4316: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4317: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘DelayMinus’:
mappy.c:4339: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4340: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘AnimChangeType’:
mappy.c:4357: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4361: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4363: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘PickAnimFrames’:
mappy.c:4470: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4471: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4476: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c: In function ‘SetAnimRef’:
mappy.c:4498: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4499: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4504: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c: In function ‘CopySection’:
mappy.c:4658: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4659: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4660: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:4661: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:4810: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c: In function ‘PlaceTile’:
mappy.c:4932: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c:4933: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4934: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4935: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4954: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c:4955: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4956: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4957: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4967: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c:4968: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4969: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:4970: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c: In function ‘PickMapStruct’:
mappy.c:5028: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5029: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5033: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5047: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5051: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5068: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5069: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5073: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5087: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5091: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘OutlineMapBlock’:
mappy.c:5122: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c:5125: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:5128: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:5131: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c: In function ‘ShowCoords’:
mappy.c:5175: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5177: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5178: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5180: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5181: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5184: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5186: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5187: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5189: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5190: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘DrawTheMap’:
mappy.c:5243: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5244: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘ExportSection’:
mappy.c:5339: warning: ‘file_select’ is deprecated (declared at /usr/include/allegro/alcompat.h:155)
mappy.c: In function ‘AnimateMap’:
mappy.c:5648: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5652: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘SameStr’:
mappy.c:5714: warning: pointer targets in passing argument 1 of ‘DrawBlock’ differ in signedness
mappy.c:5716: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:5719: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:5722: warning: pointer targets in passing argument 1 of ‘OverBlock’ differ in signedness
mappy.c:5730: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5734: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5735: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:5736: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5737: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c: In function ‘Editor’:
mappy.c:5979: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
mappy.c:5979: warning: ‘textout’ is deprecated (declared at /usr/include/allegro/alcompat.h:169)
mappy.c:6059: warning: ‘file_select’ is deprecated (declared at /usr/include/allegro/alcompat.h:155)
mappy.c:6119: warning: ‘file_select’ is deprecated (declared at /usr/include/allegro/alcompat.h:155)
mappy.c:6167: warning: ‘file_select’ is deprecated (declared at /usr/include/allegro/alcompat.h:155)
mappy.c:6226: warning: ‘file_select’ is deprecated (declared at /usr/include/allegro/alcompat.h:155)
mappy.c: At top level:
mappy.c:6272: warning: parameter names (without types) in function declaration
mappy.c: In function ‘_mangled_main’:
mappy.c:6325: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:167)
nathan@nathan-pc:~/code/mappy$ ls
alleg40.dll  mappyal.bi  mappywa.rc  proja.bas~  README.TXT
BUILDIT.BAT  mappyal.o   MYICON.ICO  proja.exe
BUILDWA.BAT  mappy.c     proja.bas   Proja.fmp
nathan@nathan-pc:~/code/mappy$ fbc proja.bas mappal.o
/usr/share/freebasic/bin/linux/ld: mappal.o: No such file: No such file or directory
nathan@nathan-pc:~/code/mappy$ fbc proja.bas mappyal.o
mappyal.o: In function `main':
mappy.c:(.text+0x3f44): multiple definition of `main'
proja.o:: first defined here
/usr/share/freebasic/bin/linux/ld: Warning: size of symbol `main' changed from 52 in proja.o to 35 in mappyal.o
proja.o: In function `MMAPPY':
: undefined reference to `MapLoad'
proja.o: In function `MMAPPY':
: undefined reference to `MapSetPal8'
proja.o: In function `MMAPPY':
: undefined reference to `MapInitAnims'
proja.o: In function `MMAPPY':
: undefined reference to `MapFreeMem'
proja.o: In function `MMAPPY':
: undefined reference to `MapFreeMem'
proja.o: In function `MMAPPY':
: undefined reference to `mapblockheight'
proja.o: In function `MMAPPY':
: undefined reference to `MapUpdateAnims'
proja.o: In function `MMAPPY':
: undefined reference to `MapChangeLayer'
proja.o: In function `MMAPPY':
: undefined reference to `MapDrawBG'
proja.o: In function `MMAPPY':
: undefined reference to `MapChangeLayer'
proja.o: In function `MMAPPY':
: undefined reference to `MapDrawBGT'
proja.o: In function `MMAPPY':
: undefined reference to `MapFreeMem'
yetifoot
Posts: 1710
Joined: Sep 11, 2005 7:08
Location: England
Contact:

Post by yetifoot »

As I said...
yetifoot wrote:I tried to recompile for linux, but found my linux does not include allegro.
Maybe at some point i'll install it, but I don't know if/when, its no priority for me, as it doesn't work well with my video card.

Are you sure you're compiling the right file? In the package I downloaded from the tilemap website, the file was called mappyal.c, not mappy.c
Post Reply