Error message in MPLAB IDE

When i was trying to compile our final code i got this error message please help me.

Please help me!

leting intermediary files… done.
Executing: “C:\Program Files\MPLAB IDE\MCHIP_Tools\mplink.exe” -p=18F452 “ifi_startup.c” -fo=“ifi_startup.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLINK 3.50, Linker
Copyright © 2003 Microchip Technology Inc.
Error - unknown switch: -p=18F452
Errors : 1

Halting build on first failure as requested.
BUILD FAILED: Wed Mar 17 17:21:03 2004

It may be that either (a) your arguments for the linker got changed or (b) something happened to 18f8520user.lkr. (B was because the name is similar to the error. ) I looked at my settings for the linker and I have no idea what could have changed.

Sorry I can’t help anymore. :slight_smile:

I don’t have much experience with the compiler/linker that you are talking about, but it seems that either of a few things happened:

  1. You somehow entered a command line parameter to the linker
  2. Something has been changed in the config file of the compiler
  3. You entered some strange accidental command in “ifi_startup.c”

Thats all I can think of.

I have not changed anything i am just trying to combine the files that i have. :confused:

it looks like somewhere you changed the target processor to the p=18F452

we are using the PIC 18F8520

maybe somewhere in the project setup / options/ custom - one of those pulldown menus?

was someone playing around with the MPLAB settings on you?

also ifi_startup.c has an include to another file, the ifi_default.h file which has an include for the picdef… file for the 18F8520 - maybe you opened one of these and entered a stay character somewhere?

are you sure your code is in the right directory?

if all esle fails, start a new directory with all the default code, and move only the files you intentionally edited into that directory - then the files you are not suppose to edit will be untouched.

I just found the problem we are missing the clib.lib file and the pic18f8520.lib files were can we find them?

Sorry guys still having trouble with all of this. I have no idea what i am doing. I’m trying to reinstall the program in an hopes to fix my error message. In case that doesn’t work could someone please help me clean up the mess i created. P.M. me if you can help than i will give you the code.

Thanx
Thanx
Thanx

first thing, remember when you install the MPLAB SW you have to follow the directions on the innovationfirst website - DONT follow the directions that came with the CD or the tools wont run right

I don’t have the CD i got it off of microchips website. Our instructor has the CD and he was not available today

ok i got MPLAB to compile almost but this is what i got.
Deleting intermediary files… done.
Executing: “C:\mcc18\bin\c18demo.exe” -p=18F8520 “ifi_startup.c” -fo=“ifi_startup.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\ifi_startup.c:1: Unable to open ‘ifi_startup.i’
error -1 spawning C:\mcc18\bin\cpp18
Executing: “C:\mcc18\bin\c18demo.exe” -p=18F8520 “user_routines_fast.c” -fo=“user_routines_fast.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\ifi_aliases.h:18: unable to locate ‘adc.h’
error 1 spawning C:\mcc18\bin\cpp18
Executing: “C:\mcc18\bin\c18demo.exe” -p=18F8520 “ifi_utilities.c” -fo=“ifi_utilities.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\ifi_utilities.c:1: Unable to open ‘A:\FrcCode\ifi_utilities.err’
error -1 spawning C:\mcc18\bin\cpp18
Executing: “C:\mcc18\bin\c18demo.exe” -p=18F8520 “main.c” -fo=“main.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\ifi_aliases.h:18: unable to locate ‘adc.h’
error 1 spawning C:\mcc18\bin\cpp18
Executing: “C:\mcc18\bin\c18demo.exe” -p=18F8520 “printf_lib.c” -fo=“printf_lib.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\printf_lib.c:1: Unable to open ‘A:\FrcCode\printf_lib.err’
error -1 spawning C:\mcc18\bin\cpp18
Executing: “C:\mcc18\bin\c18demo.exe” -p=18F8520 “user_routines.c” -fo=“user_routines.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
A:\FrcCode\user_routines.c:1: Unable to open ‘user_routines.i’
error -1 spawning C:\mcc18\bin\cpp18
Executing: “C:\mcc18\bin\c18demo.exe” -p=18F8520 “uread.c” -fo=“uread.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\mcc18\src\pmc\USART\18Cxx\uread.c:2: unable to locate ‘p18cxxx.h’
C:\mcc18\src\pmc\USART\18Cxx\uread.c:3: unable to locate ‘usart.h’
error 1 spawning C:\mcc18\bin\cpp18
Skipping link step. Not all sources built successfully.
BUILD FAILED: Thu Mar 18 00:01:12 2004

make sure the disk isnt write protected… i would suggest not trying to compile something directly on a floppy in the first place, from a speed standpoint alone. also, make sure the include, library, and linker directories are specified correctly in project options.

First, if you have another computer, try reinstalling on that, as the installer messes up (at least in my experience) if there was a previous installation. If there isn’t, uninstal the program and remove any reference to anything to do wit h MCC18 in the PATH environment variable. (To see that, open a run box and type “msconfig”.)

Another thing, make sure to check all the boxes that apear during the compiler installation, especially the one that says “Configure MPLAB to work with this version of MCC18” or something like that.