We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am a long-time assembler guy in 8051's and PICs, and just got my new Keil C51 IDE package. I am, not fluent in 'C' or Keil tools (yet). I have to look at someone else's existing code and compile it, but I get errors after loading their project and trying a build. Since I am new to the tool set, I am stumped on figuring out what is wrong. Is anyone out there who would take this set of files and help me figure out how ot get it to compile, or what is missing, for a fee? I could send the files and maybe you could help me understand what is wrong or missing? If I was more fluent with the tool set, I could get there myself, but time is critical. Can anyone help? (If this is posed in the wrong place, please forgive me!) Chris
That is my vote is that a header file is missing, or not being included. with a possibility of a conditional compile problem.
basically what you are looking for is either: a file that has just the function declaration followed by a semicolon (No Code) just like an extern in ASM. This would be in a file with a .h extension.
The second would be the declarations are in a #if directive, and are not being included.
Note: start at the first error and work down. a single error can confuse the compiler and create 100 error messages for perfectly good code.
Thanks for the input, fellas. After some time, I was given yet another set of files and this time the project compiles OK. Frustrating. What I seem to have is a terribly disorganized and haphazard programmer from whom I have inherited a real mess. (Anyone who thinks that C is "self-documenting" should see this garbage!)
Now I start again and try to understand this, but at least now I have a version that compiles.
Thanks again, and I will look for a consultant for help.
Chris
'C' is just a tool - it can be used well, or it can be used badly.
However, understanding any source code does require that you are familiar with the language - its syntax, semantics, and idioms.
I have inherited a real mess.
That sounds like the individual occupying the White House now.
@Dan Henry,
NDAA?
At least the code doesn't lie.
No.
JKRB23-4(i).
Is this a Yahoo News Forum now?
No, Bad Code is not Obama's fault. Do not like his coding? there is a special day in November just for that.
If you have not inherited Bad Code, you are either lucky or have not work in the business long enough. The worst is watching bad code being written, and hoping you do not inherit it.
Bad Code is not Obama's fault.
Agreed. Bad Code is Bush's fault.
I went to the consultant page and after a week found no one who would respond. I have code that *DID* work at some point, but doesn't work for me now. If I was more familiar with the tool set it might be easier. The guy who originally wrote this seems to be unreachable, so I am stuck.
I seem to have multiple versions or varieties of the same file that collide when I try to build the project. But if I take any of them out of the build, then things come up missing. There are files not listed in the project that seem to be included anyway - seems odd to me. And there are some symbols that make no sense to me and are never mentioned in the help stuff anywhere.
I keep thinking there will be something stupid that I have just missed or mis-understood, but I have been staring at it for a long time now.
I guess I will make another stab at the consultant page and see if someone will respond.
I have code that *DID* work at some point, but doesn't work for me now. .... I seem to have multiple versions or varieties of the same file that collide when I try to build the project. But if I take any of them out of the build, then things come up missing.
It sounds like you have a "single developer devloment" where, instead of version control software, the files for a given version was handpicked by memory.
I guess I will make another stab at the consultant page and see if someone will respond
this guy can find you a consultant
Ryan Guerin 877.916.5420 Office 480.729.8647 Direct 480.763.9771 FAX ryan_guerin@oxfordcorp.com
Erik
Where are you located?
127.0.0.1
No - that's where I am located!
San Antonio, Texas.
I doubt Andy's car could make it that far!