Hi, i'm kinda new to this so you'll have to excuse my ignorance. I'm using the MC AT89C4051 and I need to program it, so I got the at89x051.h and when I compile my program (with the #include<at89x51.h> ofcourse) with Microsoft Visual C++, I get the following errors:
error C2146: syntax error : missing ';' before identifier 'SP' error C2501: 'sfr' : missing storage-class or type specifiers fatal error C1004: unexpected end of file found
And here is where I got the header file from: www.mcuok.com/.../AT89x051.H
Any help would be greatly appreciated. Thanks in adavance, Alex.
with Microsoft Visual C++, I get the following errors:
HUH?
Microsoft Visual C++, for the '51??? in a Keil forum???
Erik
Hmm.. sorry if I've done something wrong. Just used google and found this forum. I apologize if I've caused any inconvenience.
Hmm.. sorry if I've done something wrong.
You haven't, please excuse the ignorant response you received from the other poster. Unfortunately there are a couple of contributors around here who derive their amusement from trying to ridicule newcomers.
If I understand you correctly you are trying to compile a 'C' program using VC++ to run on an Atmel 8051 derivative. You can't do this - you need to use a cross compiler such as Keil C51 that generates 8051 code rather than x86 code.
Thank you for the reply :) I suspected that was the cause for the errors. I have another software called Raisonance Kit - RIDE that works together with CEIBO EB-51. Maybe it's compiler is good? Or keil is the only option?
Thanks again for the reply :)
I have another software called Raisonance Kit - RIDE that works together with CEIBO EB-51. Maybe it's compiler is good? Or keil is the only option?
Keil is the best, but not the only, option. Raisonance, for all pracical purposes, is a Keil clone.
using Raisonance, the help is found at www.raisonance.com/.../list.php
View all questions in Keil forum