MPLab build error

I can’t seem to find out why this error is occurring. Does anyone know how to fix this? when I try to build the code it gives me this:

Executing: “C:\Program Files\Microchip\MPASM Suite\MPLink.exe” /l"C:\mcc18\lib" “18f8520user.lkr” “C:\Documents and Settings\bishop\My Documents\robot code\2005\Navigation_FRC\FrcCode\main.o” “C:\Documents and Settings\bishop\My Documents\robot code\2005\Navigation_FRC\FrcCode\user_routines_fast.o” “C:\Documents and Settings\bishop\My Documents\robot code\2005\Navigation_FRC\FrcCode\user_routines.o” “C:\Documents and Settings\bishop\My Documents\robot code\2005\Navigation_FRC\FrcCode\printf_lib.o” “C:\Documents and Settings\bishop\My Documents\robot code\2005\Navigation_FRC\FrcCode\ifi_utilities.o” “C:\Documents and Settings\bishop\My Documents\robot code\2005\Navigation_FRC\FrcCode\ifi_startup.o” “C:\Documents and Settings\bishop\My Documents\robot code\2005\Navigation_FRC\FrcCode\robot.o” “C:\Documents and Settings\bishop\My Documents\robot code\2005\Navigation_FRC\FrcCode\encoder.o” “C:\Documents and Settings\bishop\My Documents\robot code\2005\Navigation_FRC\FrcCode\gyro.o” “C:\Documents and Settings\bis
hop\My Documents\robot code\2005\Navigation_FRC\FrcCode\pid.o” “C:\Documents and Settings\bishop\My Documents\robot code\2005\Navigation_FRC\FrcCode\FRC_library.lib” /m"C:\DOCUME~1\bishop\MYDOCU~1\ROBOTC~1\2005\output\FrcCode.map" /o"FrcCode.cof"
MPLINK 3.90, Linker
Copyright © 2004 Microchip Technology Inc.
Error - Could not find linker command file ‘18f8520user.lkr’.
Errors : 1

BUILD FAILED: Fri Jan 14 13:27:30 2005

The directory where you are storing your code is too long for the compiler to handle. Move your stuff to a shorter directory such as c:\code\

The limit is 63 characters, if I remember correctly.

ah… yes. Why didn’t I think of that before? had that problem with the last compiler too… thanks for finding that out! I would have never… the last compiler actually told you that the line was too long… too bad this one doesnt.

Yeah I was just waiting for someone to answer my post about this.

wait no. That still didnt do it. My message is a little differnt too. Mine says

MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - could not find file ‘clib.lib’.
Errors : 1

Mine said this for a while, too. Go into the project build options (Project > Build Options… > Project), then hit “Suite Defaults”. This should fix the problem.

sweet! People in another thread have been giving me a million different paths to type in there, and all this time all I had to do was hit default. Of course the name is still too long, but I can fix that! Thanks!

Sorry about that, I thought you’d already tried Jamie’s suggestion.