Answered: Having trouble compiling

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: “C:\mcc18\bin\mcc18.exe” -p=18F8520 “C:\New Folder\main.c” -fo=“main.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v2.40 (demo)
Copyright 1999-2004 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 51
C:\New Folder\main.c:16:Warning [2066] type qualifier mismatch in assignment
Executing: “C:\mcc18\bin\mplink.exe” /l"C:\mcc18\lib" “C:\vex\wild goose\use\18f8520.lkr” “C:\vex\wild goose\one\main.o” “C:\vex\wild goose\use\p18f8520.lib” /o"two.cof" /M"two.map" /W
MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - could not find definition of symbol ‘printf’ in file ‘C:\vex\wild goose\one\main.o’.
Errors : 1

Link step failed.
BUILD FAILED: Wed Jul 04 12:24:48 2007


#include <p18cxxx.h>
#include <stdlib.h>
#include <stdio.h>

#pragma config WDT = OFF

void main (void)
{
TRISB = 0;

/* Reset the LEDs */
PORTB = 0;

/* Light the LEDs */
PORTB = 0x5A;
printf(“heloo world! /n”);

while (1)
;
}

**It looks like the tool directory is not set up right since it can’t find the printf routine. Stdio.h is an include file and must be in the project’s path in order to link correctly. Be sure you are using MPLAB 7.2 and then start with our Vex Starter Code from our Downloads web page. Try compiling before you make any changes to any files. **