Before main() declaration in listing declare the prototype for the
function call :
void iDAC11_SetValue( uint16 ) ;
Also make sure your IDAC component is named IDAC1, not
Today's C-language needs to know what kind of rerturn-value and what parameters a function has before it is called the first time. This is named "declaration" of a function prototype. It has the form
Usually to improve parameter understanding, a name can be posted after a parametertype which is meaningless for code generation but improves readability, for example
BOOL GetValveState(uint16 PressureValue);
while GetValveState(OutSideBar) ...
Dana, Thanks for helping to fix the PSOC related compilatation errors.
I also had same issue of " requires ANSI-style prototype" in my PSOC3 compilation.
I made a mistake of not declaring function call before main(). After I have declared function call correctly as below before main()
the error "ERROR: .\main.c:100: 'PIN_3V3_BCM_ON_write': requires ANSI-style prototype
The command 'c51.exe' failed with exit code '2' is disappeared.
Did you terminate the declaration with a ";" ?
Another possibility, you mispelled the call in the code after declaration.
Some compilers complain about a line number, and it's actually the prior
line of code that is at issue.......
Dana, Yes.. I had ";" after decleration
and actually there was no mispel/case senstive change for this call in my code after decleration.