Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

converting 8051c to pic c compiler

Status
Not open for further replies.

lgeorge123

Full Member level 2
Full Member level 2
Joined
Jun 13, 2004
Messages
130
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
Hong Kong
Activity points
1,403
I have a portion of 8051 c program, I wish to convert to ccs c compiler, can anyone help me? the line to be converted into ccs c compiler is

unsigned char *temp=(unsigned char*)_Value;

Added after 48 minutes:

original copying to ccs c compile output error message.
 

perhap you havent defined value or temp in your code as the rest of the code is straight forward C or it could even be something with the bracket aound
=(unsigned char*)_Value; , these are just guesses as i'm newish to C
 

Code:
unsigned char *temp=(unsigned char*)_Value;

There are a several possibilities:

1. Variable "temp" has already been declared in the current scope.

2. Variable "_Value" is not defined.

3. This statement appears outside of a function.

4. Since this statement declares the variable "temp," it must appear before most other executable statements. This may not be the case in your original code and the previous compiler may be more foregiving of such transgressions.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top