|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Default code will not compile
We migrated to a new computer this year, so I installed v8.00 of MPLAB and v2.40 of the compiler. These are the errors:
Quote:
|
|
#2
|
|||
|
|||
|
Re: Default code will not compile
Quote:
Not sure why this is but it still applies Steve Last edited by Steve_Alaniz : 01-16-2008 at 05:44 PM. Reason: correction |
|
#3
|
|||
|
|||
|
Re: Default code will not compile
There is a version of the base code that will compile with the new compiler
and IDE. It can be found on the Kevin Watson site. http://www.kevin.org/frc look for the zip file ifi_frc_30.zip. The libraries are on this site also. We are using the 3.0 compiler successfully. I am the programming mentor for Team 662 Rocky Mountain Robotics. |
|
#4
|
||||
|
||||
|
Re: Default code will not compile
Thanks guys/gals!
I've downgraded to 7.20 and that error is now gone ![]() But... I get a new error. In user_routines.c, line 193 Code:
Error [1203] too few arguments in function call Btw, I couldn't open the default code project because the file format of the workspace was incompatible so I created a new project and added the files to that. Edit - This is bronxbomber92 posting under a teammates account. Edit 2 - I just tried compiling Kevin's 2.40 beta code ( I could't open the workspace like above, so I made a new workspace again). I get an error saying Code:
could not find file clib.lib Last edited by Pulverator : 01-16-2008 at 07:56 PM. |
|
#5
|
|||||
|
|||||
|
Re: Default code will not compile
Quote:
In the first case _FRC_BOARD was used to switch between the FRC and the old Edu controller. The macro used to be defined in MPLAB build options. You can add it under the complier tab or just add "#define _FRC_BOARD" to the code before it gets referenced. In the second case when you built your new project you didn't set the path where MPLAB is to look for the libraries (mcc18/lib). Also under build options. |
|
#6
|
|||
|
|||
|
Re: Default code will not compile
Thanks. I did add mcc18\lib to my include path before, but it then gave me another linking error:
Quote:
|
|
#7
|
|||
|
|||
|
Re: Default code will not compile
I fixed the problem!! The problem was that the old 8522 linker scripts were still in the project and I believed those were being used instead.
|
|
#8
|
|||||
|
|||||
|
Re: Default code will not compile
Quote:
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Code Won't Compile in MPLab with WPILib | Inverted | Programming | 1 | 02-20-2007 10:12 PM |
| Do not know where to get default code | ZookieWookie | Programming | 4 | 02-13-2007 05:23 PM |
| CMUcam default code not responding | Kyveck | Programming | 29 | 01-26-2006 04:25 PM |
| 2005 default code won't compile | Robby | Programming | 22 | 02-04-2005 06:21 PM |
| Can't Compile the Default Code | pressurex1 | Programming | 4 | 01-25-2004 08:26 PM |