Hello, i have made a patch to make codeblocks works with that compiler(based in compiledSDCC.cpp), in windows it autodetect the path if the compiler is installer, in linux its set default to /opt/microchip/mplabc18/v3.40. I tested it with version 3.40 of the compiler.
the patch is attached and a demo project(a modified version of the firmware for PICDEM Board)
[attachment deleted by admin]