??? 01/10/08 15:57 Read: times |
#149228 - You need to give more info! Responding to: ???'s previous message |
Juan Carlos said:
Hi, I have a program with 2 .c files or macros. What do you mean by "files or macros"?? One is Main.c and the other is Motor.c So where do the macros come in? The first problem I have is that the c51 compiler microvision 3 does not compile with the two .c file. It gives an error "target not created". Note that uVision ("microvision") is the IDE - not the compiler. When you see "target not created" it means that previously-reported errors have prevented it from creating the target! Therefore, you need to examine the previous error message(s) and fix their cause(s). Since you have not shown either your source code or the error messages, nobody can help you with that! It used to compile but now is not. In other words, you have broken it! Examine the changes you made - the errors must lie there! but it gave me an error...I have posted this problem before but never resolved. Where did you post it? When? Provide a link! Again, if you don't show the code or the error messages, how can anyone possibly help?! 1. How can I create a project where the C51 compiles with two or three .c files? You just add the files to the project. If the files contain errors, they obviously won't compile! You need to fix the errors! 2. How can I make two .c files share a common variable.h file? This is standard 'C' - look in any 'C' textbook! Is there a "How to create a project" File, document? Yes: http://www.keil.com/support/m...g_apps.htm See also: http://www.keil.com/support/m...amples.htm My warranty with Keil Software is expired and it will be very expensive to re-new it. The warranty lasts a year - do you mean you've had it a whole year, and not used it?! Lower-cost and free tools are available - click the 'Links' button to the left of this page. |