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.
Hi to all, I am an advanced sortware engineer specialising in c compiler programs. By a guided book of " Projects in C for U" . I am building my latest project but I am having errors. I have tried attach all the files. I have compiled it in Keil uvision 4. Pls can anyone help me out to get the program working.
Any help would be really appreciated.
I am having this error in Keil :
Build target 'Target 1' compiling LED Binary Counter.c... LED BINARY COUNTER.C(29): warning C206: 'wait_a_sec': missing function-prototype LED BINARY COUNTER.C(12): warning C1046: 'shoot_bred': missing function name is linking... *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?WAIT_A_SECOND?LED_BINARY_COUNTER *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: WAIT_A_SEC MODULE: LED Binary Counter.obj (LED_BINARY_COUNTER) *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: WAIT_A_SEC MODULE: LED Binary Counter.obj (LED_BINARY_COUNTER) ADDRESS: 082EH Program Size: data=11.0 xdata=45212 code=54487 creating hex file from "LED Binary Counter"... "LED Binary Counter" - 0 Error(s), 5 Warning(s).
If your problem is about an AT89C2051, what made you pick C166 as your Architecture?
I have tried attach all the files
That doesn't work. There's no "attach file" function in this forum, and frankly, I think that's a Good Thing(TM).
I am building my latest project but I am having errors.
No, you're not. You're getting warnings, not errors. Some of those are pretty serious, specially those from the linker about unresolved references, but they're still just warnings.
Pls can anyone help me out to get the program working.
How do you expect anybody to be able to do that, given the fact you haven't told us in what way it's not already working right now?
I do wonder, though: how do you justify calling yourself an "advanced sortware engineer" [sic] if you can't figure out stuff like that for yourself?
Hi; Bas I see:
I have a function declared at begin:
#define variable static int
/* Function to delay about a second */ void wait_a_second() { variable x; for(x=0;x<33000;x++); }
and i try using this: wait_a_sec(); /*Wait about a second*/
This name-missing will be my problem I think. I Try it!
You just demonstrated the worst possible way of implementing a delay.
1) You don't know how many iterations it will take to get a one-second delay.
2) You don't know how the delay will change depending on compiler version, or changed clock frequency.
3) You don't even know if there will be any delay at all, or if the compiler will detect the meaningless loop and remove it.
Seach with Google or on this site and you will find a large number of threads discussing how to implement delays.
#define variable static int ... { ... variable x; ... }
You better be kidding. But you're not.
Well, so much for whatever credibility you might have had left.
I am an advanced sortware engineer specialising in c compiler programs
by that standard, I am a brain surgeon
Erik
For example: www.keil.com/.../search.asp
My code now working perfectly.... a small problem ..... nothing serious.
I am a SOFTWARE engineer !!!!!
Oh, yeah.
You have a hard time convincing us that you: - are advanced - are a software specialist - are an engineer - are specializing in c compiler programs - are specializing in c programs
Would you believe someone who claims to be a baker but don't know what the result is if you melt sugar? A car mechanic who doesn't know how to use a moment wrench? A personal trainer who haven't heared about lactic acid? A runner who thinks that the BPM readings are the tempo of the music?
Anyone with even just basic knowledge about C would know about missing references etc. And to be a software engineer, you would have been required to learn a number of languages - both procedural, functional, ... At least some of these languages would have complained about missing references.