I have the following error on my simulated program.
Error C267 Funcdef Requires ANSI-Style Prototype Summary *** Error C267 Funcdef Requires ANSI-Style Prototype
Description A function was invoked with parameters but the declaration specifies an empty parameter list. The prototype should be completed with the parameter types in order to give the compiler the opportunity to pass parameters in registers and have the calling me
Copyright (c) Keil - An ARM Company. All rights reserved.
That was the error description, can anybody tell me how to correct it?
This is the code: #include "Main.h" #include "Simple_EOS.H"
#include "PC_IO_T1.h"
/* ...........................................................................................................................*/ /* ........................................................................................................................... */
void main(void) { // Set baud rate to 9600: generic 8051 version PC_LINK_IO_Init_T1(9600);
// Set up sEOS (5ms tick) sEOS_Init_Timer2(5);
while(1) // Super Loop { sEOS_Go_To_Sleep(); //Enter idle mode to save power } }
This is an example of the Addison_Wesley_Embedded_C.pdf
the path to the solution is the path :)
Erik
meaning?
that the path to the files it can't find is not in your build or conversely the files are not in the paths defined in your build.
How do you expect a module to get information from an include file it can not find ?????
And how do i find these files?
They should be in the same folder as the C file.
Joel Rodríguez asked, "And how do i find these files?"
The location of the files should be stated in the "Manual" that you said you're working from...
Neil Kurzman said, "They should be in the same folder as the C file"
Not necessarily.
There is no general requirement for header files to be in any specific location.
It is not uncommon for people to put all headers in a folder (structure) separate from the .c files...
The #include directive can include a relative or absolute path; The compiler Manual tells you the search rules it uses for locating headers where no path is specified.
http://www.keil.com/support/man/docs/c51/c51_pp_header_files.htm http://www.keil.com/support/man/docs/c51/c51_pp_include.htm