View Single Post
  #4   Spotlight this post!  
Unread 26-06-2005, 14:38
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
Re: printf could not find definition

First I would like to thank you for a detailed replay.

I looked at the version compiler version in readme.c18 and it says v2.20.
I check to see if MPLab had to correct paths in build options. Those are correct. However when I looked to see if printf_lib.h was included in my project it was no where to be found. and it I looked user_routines.c to see was included in that it said #include <stdio.h> so I dont know what that means. Maybe it means that my compiler isnt working with the default camera code? if that is the case where do I get a newer compiler version?

No other compilers have been installed on this machine. so I dont think that is the problem.

On another note I have a copy of 237s code that they posted on chief delphi to help other progrmmers. Their code has printf statements and compile fine.

Last thing is I have solved my problem a little. I can now compile with printf statements. I redownloaded the default code. I decided I dont really care about camera code and I dont really know I why I downloaded that version any way, probably b/c it is a later version so I thought eh whats the difference. However there must have been a difference b/c it compiled without a problem. so I took the files I wanted from the project I was currently working on and put them into default code project that didnt have camera code and it compiled as well. So I am guessing that the older code was made using a comiler version compatable with mine and the camera code was made using a version my compiler mine was not compatable with.

However I would still like to solve this problem so if I am right I will need to know where to get a newer version of the compiler. If that is the problem at all.

About the "clean" option. That sounds like a good idea but I couldnt find it anywhere. could you elaborate on where I can find it at? Thanks