Problem with MPLAB

how do you export MVS projects as hex files

In the toolbar:
Project -> Build All
or Ctrl+F10
if that does not work, then make sure that mcc18 is inside…
By going to (in the toolbar):
Project -> Select Language Toolsuite…

Yah i tryed that still dosen’t work. when i go to build it says:

Executing: “c:\mcc18\bin\mcc18.exe” -p=18F452 “user_SerialDrv.c” -fo=“user_SerialDrv.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
This version of the compiler supports only the PIC18F8520 processor.
Halting build on first failure as requested.
BUILD FAILED: Sat Jan 29 15:21:31 2005

Help please

Try re-installing mcc18,
or if that does not work, than perhaps you have the wrong PIC setup in the workspace by going to “Configure -> Select Device” and set it to PIC18F8520

Ok I did all that now it says:

Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “user_SerialDrv.c” -fo=“user_SerialDrv.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\mcc18\h\p18f8520.h:169:Error [1109] type mismatch in redeclaration of ‘PORTBbits’
C:\mcc18\h\p18f8520.h:201:Error [1109] type mismatch in redeclaration of ‘PORTCbits’
Halting build on first failure as requested.
BUILD FAILED: Wed Feb 02 16:20:53 2005

Rickertsen2 just cleared this up over here:
http://www.chiefdelphi.com/forums/showthread.php?p=330690#post330690