View Single Post
  #22   Spotlight this post!  
Unread 04-02-2005, 07:38
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,926
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: 2005 default code won't compile

Quote:
Originally Posted by Plloyd
I am also having a problem with printf_lib.h

I can compile the default code, however, if i add the printf_lib.h and .c files that are in the default code directory, and attempt to use the printf function, it gives me the following error:
Don't include the printf_lib.h or printf_lib.c files. They are old and no longer necessary.
The new compiler comes with a new printf routine. Adding the old printf routine on top of the default one caused the compiler to get confused about which of the two it should use.

Instead, add:
#include <stdio.h>
to any file that needs to use printf.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle