MCU User Forum
  Error C267 problem

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Error C267 problem
yakovlev3a
New Member
posted July 26, 2010 12:14 PM     Click Here to See the Profile for yakovlev3a     Edit/Delete Message
I am trying to run a program that simply prints some text to Putty when a button on the MCU is pressed. When I try to compile the code, I get error C267 which says " printf missing function-prototype".

Here is my code:


while(1)
{
if (SW1=0)
{
printf("%c \n","b");

}

}

This does not make sense. I included an argument. Why is it still returning error.
Please help

IP: Logged

yakovlev3a
New Member
posted July 26, 2010 12:29 PM     Click Here to See the Profile for yakovlev3a     Edit/Delete Message
Nevermind, the problem was that I forgot to include STDIO header file

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | MCU User Forum

Have you seen our MCU Knowledge Base?


Ultimate Bulletin Board 5.47b