First of all I’m a newbie at the Vex Robotics Kit here are the things I’ve already done
I’ve successfully installed Mplab v8.10 and C18 compiler v3.35 , I went through the user guides and successfully build the first program, the “Hello World!!” program,so I think my C compiler is working
I downloaded the Vex Starter Code and extracted to a file called “VexCode” I placed it under the directory C:\mcc18\VexCode I opened VexUserCode.mcw (work space) and imported VexUserCode.mcp (project)
I set the Project–> Build options —> Project and set the Include search path to C:\mcc18\h and C:\mcc18\VexCode
and the Library search path to C:\mcc18\lib and C:\mcc18\VexCode
and Linker script search path to C:\mcc18\VexCode the Linker script is in the VexCode folder 18f8520user.lkr
Then Build all in the output window it shows
Debug build of project C:\mcc18\VexCode\VexUserCode.mcp' started. Preprocessor symbol__DEBUG’ is defined.
Tue Aug 03 03:19:32 2010
It seems that we have similar problems in the forum it mentioned something about the macro setting and I also tried adding “_FRC_BOARD” to the macro definitions and it still didn’t work
Let me recommend that you visit the: WPI Lib for VEX/FRC site and grab that library. It will make your programming about 1000 times easier. There are full instructions on how to make it work with MPLabs.
The Microchip compiler / linker is very fussy when it comes to path names, etc. in the setup.
Thanks for all you guys’ help!! I got it to work I try downloading older versions of Mplab v7.60 and C18 v2.40 and I downloaded Elevation - Appendix D (Programming Guide) from http://www.vexforum.com/wiki/index.php/Elevation
when you extract the file it willgive you the VexCode file and deleting the old library files and adding a new one Vex_2008_library.lib from the MPLAB-Autonomous-Code Rev2 - Vex Code