Pheetuz
Full Member level 3
I am having a go at teaching myself C, I am using MicroChips IDE and their C18 compiler for this.
I have tried using the putchar() and getchar() command for a very basic program that displays whatever key you press on the keyboard. The program is a program that I know I have run before on codewarrior IDE but it does not seem to want to work on MPLAB.
Is this because a PIC would not have these functions built into them and as such the compiler wont let me use them ??
When I try to compile the program, it says "Cannot use a function without declaring a function prototype". I was under the assumption that the prototype would be in stdio.h ???
Many thanks.
Pete
I have tried using the putchar() and getchar() command for a very basic program that displays whatever key you press on the keyboard. The program is a program that I know I have run before on codewarrior IDE but it does not seem to want to work on MPLAB.
Is this because a PIC would not have these functions built into them and as such the compiler wont let me use them ??
When I try to compile the program, it says "Cannot use a function without declaring a function prototype". I was under the assumption that the prototype would be in stdio.h ???
Many thanks.
Pete