Home > other >  Keil please give directions!!!!!
Keil please give directions!!!!!

Time:09-17

A heavyweight directions will use keil, why own kile a project to build a file will be successful but more than one file will show compile did not create (code is no problem)

CodePudding user response:

The original poster to establish what is project, Build the Output window display an error and warning, and can locate fault location; If you need help best screenshot error as a result, convenient to help you with your analysis

CodePudding user response:

reference 1 floor - pineapple juice - response:
the building to establish what is project and Build the Output count and warnings window has an error, and can locate fault location; If you need help best screenshot error as a result, convenient to help you analyze

I just started, is whether a project under the header file will appear to repeat

CodePudding user response:

reference 1 floor - pineapple juice - response:
the building to establish what is project and Build the Output count and warnings window has an error, and can locate fault location; If you need help best screenshot error as a result, convenient to help you analyze

I just started, is whether a project under the header file will appear to repeat

CodePudding user response:

The original poster please put the project on the left at the bottom of the list of files and error screenshots sent to, otherwise can't locate the problem,

CodePudding user response:

reference PlrdsvaY999 reply: 3/f
Quote: refer to 1st floor - pineapple juice - response:
the building to establish what is project and Build the Output count and warnings window has an error, and can locate fault location; If you need help best screenshot error as a result, convenient to help you analyze

I have just started, could you tell me whether a project is under a header file will appear to repeat


Yes, if a header file to use conditional compilation to prevent repeated contains and compilation, when the same source file containing the two conflict with a header file will appear statement; But repeat this contains the source file also compiled in this paper, let alone the whole project; If you are each file individually compiled and success, but the whole project compilation fails is more likely to be some of the parameters of type error, if you are building the STM32 MCU engineering and boot file errors or repeat, corresponding to the global macro definition errors or undefined and so on will cause the failure of compilation;
So there is no specific screenshots can't find the reason

CodePudding user response:


such

CodePudding user response:

refer to 6th floor PlrdsvaY999 response:

The

I am write a very simple c file, and then create a new file to be added to the group, the new file and the original basic same, is to change the variable name, but can appear such mistakes, because the two references the same header files

CodePudding user response:

refer to 6th floor PlrdsvaY999 response:

The

I am write a very simple c file, and then create a new file to be added to the group, the new file and the original basic same, is to change the variable name, but can appear such mistakes, because the two references the same header files

CodePudding user response:

See the error message is that you have 2 main (), so the compilation of normal but link failed

CodePudding user response:

references 9 f dceacho response:
see the error message is that you have 2 main (), so the compilation of normal but link failed

Can't appear two main , that if you want to write the zha write two files

CodePudding user response:

B station has a video tutorial

CodePudding user response:

references to the tenth floor PlrdsvaY999 response:
Quote: references 9 f dceacho response:
see the error message is that you have 2 main (), so the compilation of normal but link failed

Can't appear two main , that if you want to write two files the zha

As the main entrance is for the entire program, and file it doesn't matter, you put one of the main change my name to A (), for example, it is ok to call A () in the main
  • Related