Unable to create a program for MSX

Post Reply
baltasarq
Member
Posts: 35
Joined: Wed May 11, 2016 7:53 pm

Unable to create a program for MSX

Post by baltasarq »

Hi, there!

I'm using z88dk. I have a program created, Bares, for the ZX Spectrum, using cross-platform libraries only (conio.h):

http://github.com/baltasarq/bares/

So, I can create a .TAP for the Speccy and it works.

Unfortunately, I cannot do the same for the MSX. I change "+zx" by "+msx" and it always ends with the same error being unable to compile conio.h... Any clue?
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

It looks like there's a conflict between the colours defined in msx.h and the colour enum in conio.h

Given that you're not using the MSX specific code, here's a quick work around: just add this: #define __MSX_H__ to the top of one of your source files - that will avoid the inclusion of msx.h
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

Maybe we need to change all the platform specific constants to include a target prefix as in "MSX_RED" ?

I'm not sure how much code that would break.
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

It needs to be done so I'll put it on my list of things.

I think you already did it for zx so it's hopefully not too big a job.
Post Reply