Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling the code #4

Open
RChadwick7 opened this issue Dec 5, 2018 · 5 comments
Open

Compiling the code #4

RChadwick7 opened this issue Dec 5, 2018 · 5 comments

Comments

@RChadwick7
Copy link

How do you compile the code? I assumed SDCC, but running the makefile caused errors. Do I need an older version of SDCC?

@Ivan275g4
Copy link

Have you figured out how to compile the code? I'm using a windows sdcc-3.8.0-x64 and I'm getting errors:

C:>sdcc C:\specan\specan.c

In file included from C:\specan\specan.c:22:
C:\specan/display.h:58:1: warning: "NOP" redefined
In file included from C:/Program Files/SDCC/bin/../include/mcs51/cc1110.h:29,
from C:\specan\specan.c:20:
C:/Program Files/SDCC/bin/../include/mcs51/compiler.h:92:1: error: this is the location of the previous definition
C:/Program Files/SDCC/bin/../include/stdio.h:86: error 91: extern definition for 'putchar' mismatches with declaration.
C:\specan/display.h:103: error 177: previously defined here

@RChadwick7
Copy link
Author

No, I never figured it out. Hopefully someone has, as the in-me is an ideal platform for quickly developing ideas.

@Ivan275g4
Copy link

I got it to compile without errors but have not tried to flash it. You need to use an older SDCC version, I believe it compiles with versions 2.9, 3.0, 3.1, 3.4, 3.5, 3.6 but the compiled file doesn't match the compiled file that the author made. That makes it a bit scary for me. Maybe its because I'm using windows version of SDCC and author used Linux version, or maybe a sub version that i cant find like 3.0.2 or ???

@Ivan275g4
Copy link

Ivan275g4 commented Sep 1, 2020

After compiling it with 2.9.0 #5416 (Mar 22 2009) (MINGW32) it did flash it without problems.

@kalirenegade
Copy link

so when i received this error i check out all the files containing the putchar and i removed all reference from C:/Program Files/SDCC/bin/../include/stdio.h and it compiled no problem you could also just remove the reference from display.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants