Home > other >  Solve the "implicit declaration of the function" error
Solve the "implicit declaration of the function" error

Time:09-21

In. Add in c file. H file in. H file has defined function but will still appear error

In the finally. The main function of # include a transfer of the order, the serial port. H files in the last, on the other to solve it in the front of the

CodePudding user response:

Not enough information to list imag error symbol XXX

Reason: not include the header file,
Transmission error in parameters or

My mistake: in the main references to an external variables defined in c
Should write in the main extern. C. before
Variables defined in the interrupt service program and was the main. C reference variables should be defined as global variables

CodePudding user response:

refer to the original poster qq_45053625 response:
in. Add in c file. H file in. H file has defined function but will still appear error

In at last. The main function of # include a transfer of the order, the serial port. H files in the last, on the other to solve it in the front of the

This alarm for. H file # ifndef wrote ifdef
  • Related