X
RSS YouTube LinkedIn Twitter Facebook

Search




Post new topic Reply to topic   [ 3 posts ] 
Author Message
47
PostPosted: Wed May 23, 2012 1:08 am 
Joined: Wed May 23, 2012 12:44 am
Posts: 3
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!

Code:
# include < stdio .h >

main ( void ) {
   printf ( " Hello , world !\ n " );
}


Fixed it!. The problem was the spaces. It should be

Code:
#include <stdio.h>
main ( void ) {
printf ("Hello , world !\n");
}


Top
Offline Profile View all posts by this user  
 
1003
PostPosted: Wed May 23, 2012 9:25 am 
User avatar
Site Admin
Joined: Thu May 12, 2011 11:14 am
Posts: 268
For a lot of these types of questions, especially common ones related to C, you can google the answers or check on stackoverflow


Top
Offline Profile View all posts by this user  
 
1344
PostPosted: Thu May 31, 2012 1:16 am 
User avatar
Respected Member
Joined: Tue May 18, 2010 12:25 am
Posts: 377
Also, it should be noted almost all examples in the pdf documentation will not copy-paste correctly. It's easier to re-type the examples.


Top
Offline Profile View all posts by this user  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic   [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests



Search for:
Jump to: