Hi all
I'm trying to make working a PIC18F4523 with MPLAB instead mikroe... with no success

Actually I use Proteus to simulate some parts with mikroe and it works (also on a real PCB) so why using MPLAB ? simple: I will need to use MPLAB for programming PIC24FJ128GC010 witch is not supported by mikroelectronika.
First I put MPLAB on my laptop and I think it's quite long to set correctly everything (and probably it's not because it doesn't work

)
Second I added "MPLAB-C15-Full-v3" and MPLAB 18-v3.47".
Third in MPLAB I choose "mcc18.exe" in toolsuite
I'm here: I put a simple code to see if it worked.
#include <p18F4523.h>
#pragma config FOSC = HS, FCMEN = OFF, IESO = OFF
#pragma config PWRT = OFF, BOREN = OFF, BORV = 30
#pragma config WDTEN = OFF, WDTPS = 32768
#pragma config MCLRE = ON, LPT1OSC = OFF, PBADEN = OFF, CCP2MX = PORTC
#pragma config STVREN = ON, LVP = OFF, XINST = OFF
//
#define led PORTDbits.RD0
#define duree 10000
void tempo(unsigned int compte)
{
while(compte--);
}
void main(void)
{
TRISD = 0x00;
while(1) {
led=!led;
tempo(duree);
}
}
and, when compling, I have this:
Debug build of project `D:\WesX\WesX25 MPLAB\Simu4523MPLAB.mcp' started.
Language tool versions: mpasmwin.exe v5.54, mplink.exe v5.00, mplib.exe v5.00
Preprocessor symbol `__DEBUG' is defined.
Sun Apr 20 16:35:32 2014
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F4523 /i"C:\MCC18\h" "Main.c" -fo="Main.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
D:\WesX\WesX25 MPLAB\Main.c:10:Error [1224] configuration setting 'FOSC' not recognized
D:\WesX\WesX25 MPLAB\Main.c:11:Error [1225] configuration value '30' not recognized for configuration setting 'BORV'
D:\WesX\WesX25 MPLAB\Main.c:12:Error [1224] configuration setting 'WDTEN' not recognized
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `D:\WesX\WesX25 MPLAB\Simu4523MPLAB.mcp' failed.
Language tool versions: mpasmwin.exe v5.54, mplink.exe v5.00, mplib.exe v5.00
Preprocessor symbol `__DEBUG' is defined.
Sun Apr 20 16:35:32 2014
----------------------------------------------------------------------
BUILD FAILED
Could you help me ?
Thanks