Log in

View Full Version : Printf symbol undefined? Help


schenkin
08-02-2005, 15:40
I can't get the code to compile uless i comment out all the printf statements. Can someone tell me how to fix this?

MPLINK 3.40, Linker
Copyright (c) 2003 Microchip Technology Inc.
Error - could not find definition of symbol 'printf' in file 'D:\Codes\Versions\1.0.4 (In Progress)\user_routines.o'.
Errors : 1

AIBob
08-02-2005, 15:55
you probably have not included "stdio.h"

#include <stdio.h>

schenkin
08-02-2005, 16:10
I do have that included, however, idon't have the file itself.

Ssbfalcon
08-02-2005, 16:14
I suggest you reinstall the compiler then, as these are standard libraries included with the compiler.

We ran into a problem with a module we were writing that was similar. Make sure that file is included in every file you plan to use printf. It was late last night...