How to include stdio.h for printf?
Posted: Wed May 23, 2012 1:08 am
This should be an easy question to answer. I am extremely new to this. I tried compiling this code for the XC-1, but the compiler had the error can't open include file "stdio.h".
Thanks!
Fixed it!. The problem was the spaces. It should be
Thanks!
Code: Select all
# include < stdio .h >
main ( void ) {
printf ( " Hello , world !\ n " );
}
Code: Select all
#include <stdio.h>
main ( void ) {
printf ("Hello , world !\n");
}