I’m trying to use MPLAB 8.10 with the 2.40 version of the C18 compiler and friends. I can’t use 3.20 because the Vex code doesn’t compile with it. Everything compiles, but I get stuck on a silly linker error with an unknown switch.
Executing: "C:\MCC18\bin\mplink.exe" /l"C:\mcc18\lib" "18f8520user.lkr" "user_routines_fast.o" "ifi_startup.o" "ifi_utilities.o" "main.o" "printf_lib.o" "user_routines.o" "C:\laptopVex\Vex_alltimers_wauton_jmpr.lib" /z__MPLAB_BUILD=1 /o"VexUserCode.cof"
MPLINK 3.90, LinkerCopyright (c) 2004 Microchip Technology Inc.
Error - unknown switch: /z__MPLAB_BUILD=1
Errors : 1
I don’t get this error in MPLAB 7.20, but I don’t want to have to install 7.20 because I also need to be able to compile code based on Kevin’s FRC framework. Is there some way I could get rid of this switch? What does it do anyway?
Also, I was reading on the forums that some people compile the code under other IDEs such as Bloodshed or Codeblocks. Is there a way I can compile the code without an IDE altogether, with like a makefile or something? I’m using VIM for editing and I only use MPLAB to click the build button. A plain old command based method would make my day.