View Single Post
  #6   Spotlight this post!  
Unread 26-06-2005, 20:56
RbtGal1351's Avatar
RbtGal1351 RbtGal1351 is offline
~La Reina de los Robots~
AKA: Stephanie
FRC #1351 (TKO)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: San Jose, CA
Posts: 166
RbtGal1351 is a splendid one to beholdRbtGal1351 is a splendid one to beholdRbtGal1351 is a splendid one to beholdRbtGal1351 is a splendid one to beholdRbtGal1351 is a splendid one to beholdRbtGal1351 is a splendid one to beholdRbtGal1351 is a splendid one to behold
Send a message via AIM to RbtGal1351 Send a message via MSN to RbtGal1351
Re: printf could not find definition

YAHOO!

Ok i had (i hope its past tense) the exact same problem as Alex829...

What I discovered:

- Version 2.2 compiles with the printf statements, and it includes printf_lib.h in the project

- Version 2.4 does NOT compile-- the same error message about printf definitions.
The project does not include printf_lib.h

- Version 2.4 with printf_lib.h and printf_lib.c added to the project: COMPILED!!

- My testing code that was based off of v2.4 with printf statements: Does not compile, the printf definition error message. Does not include printf_lib.h or .c

- My testing code (as above) with printf_lib.c and printf_lib.c added to the project: COMPILED!


I haven't been able to test whether the printfs actually work because i'm at home, and not at the lab with an RC.

So, in short, my (i hope) solution: Add printf_lib.c and printf_lib.h to the PROJECT. (Project -> Add files to project -> Select the file to add)

Does this solve anyone else's problems? (Or create more unexpected ones?)


~Stephanie
__________________
2004 Founding member and Arm leader, 2005 Lead programmer, 2006 Controls leader, 2007 Project Manager/President
Thanks for making FIRST such a great experience for me. I'm no longer on 1351, and I'm not currently planning to mentor team 97, but FIRST has meant so much in getting me to where I am now, in life and at MIT, class of 2011.
I met Billfred! He recognized me!
SVR 04: 11th seed - Highest Rookie Seed - Semifinalists w/ 1120 and 568 - GM Industrial Design Award
SVR 05: Semifinalists w/ 8 and 766
SVR 06: 6th seed - Quarterfinalists w/ 368 and 1072
Davis 06: 1st seed - Quarterfinalists w/ 649 and 100 - KPCB Entrepreneurship Award
SVR 07: 36th seed
David 07: 4th seed - Semifinalists w/ 1280 and 692 - Johnson and Johnson Sportsmanship Award