B-Em

want to talk about MESS/model b/beebem/b-em/electrem/elkulator? do it here!
Coeus
Posts: 458
Joined: Mon Jul 25, 2016 11:05 am

Re: B-Em

Postby Coeus » Sat Apr 15, 2017 1:32 pm

bakoulis wrote:x86.c:196:4: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = 0; i < MAXOPLEN; i++) {
^
x86.c:196:4: note: use option -std=c99 or -std=gnu99 to compile your code


What has happenned here is that the writer of the X86 disassembler I have incorporated has used a modern C feature, one of of those I think has been imported from C++. It seems on my compiler, gcc version 6.3.1, the C99 standard, which permits that syntax, is enabled by default whereas on older compilers it is not.

Can you try switching to the sf/c99-fix branch in which I have committed what I hope is a fix for this and see if it builds correctly, please?

User avatar
bakoulis
Posts: 249
Joined: Wed Feb 08, 2012 9:45 pm
Location: Athens, Greece

Re: B-Em

Postby bakoulis » Sat Apr 15, 2017 1:57 pm

The sf/c99-fix branch works!
Move it at master branch.
:D
2xElectron, 3xBBC B, BBC Master.
2xAcorn A310, A420/1, 2xA3000, 2xA3010, A3020, A4000, A5000.
2xRISC PC, Acorn Pocket Book, Acorn Pocket Book II.

Coeus
Posts: 458
Joined: Mon Jul 25, 2016 11:05 am

Re: B-Em

Postby Coeus » Sat Apr 15, 2017 2:22 pm

Ok, that fix is merged into master. The windows ZIP file in the earlier post is unaffected by this change.


Return to “emulators”

Who is online

Users browsing this forum: No registered users and 3 guests