View Single Post
  #1   Spotlight this post!  
Unread 25-06-2005, 22:10
Alex829's Avatar
Alex829 Alex829 is offline
Registered User
FRC #0829
 
Join Date: Jun 2005
Location: Indiana
Posts: 5
Alex829 is an unknown quantity at this point
Cool printf could not find definition

Error msg:

Error - could not find definition of symbol 'printf' in file 'C:\Robot\Doomed\user_routines.o'.

before you press that reply button and tell me this question has already been answered you should know I know this already. first thing I did was search the forums. What I got was some stuff bout makings sure stdio.h was being called, make sure build options are correct, and reinstalling the compiler. I did all three of these things and nothing helps.

I am using MPLAB 7.2 if that helps any. and im just trying to get default code to compile right now. My team never really did figure out what the problem was with printf so we just commented out all the statements and moved on. I would like to use this debugging tool becuase it could save hours to know what is being outputted.

One post that I read did have me stumped and I didnt really know how it could help however the next post was the questioner saying thanks and I was left in the dark.

Quote:
Do either of you still have the old compiler installed as well as the new compiler?

It seems like you are linking with an earlier version of the compiler standard library clib.lib.
That's where printf should now be coming from. Older compiler versions didn't have a printf in the library and teams used the IFI version in the project printf_lib as a substitute.
Thanks for any help you can give.

o btw if you wanna look at the the thread this came from:
http://www.chiefdelphi.com/forums/sh...ntf+definition