Log in

View Full Version : Default code will not compile


bronxbomber92
16-01-2008, 17:37
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:


Error - Coff file firmat for 'ifi_library.o' is out of date.
Error - Could not build member 'ifi_library.o' in library file 'C:\Code\Proj\deault\FRC_library_8722.lib'

Steve_Alaniz
16-01-2008, 17:44
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:
a quote for IFI robotics site "You must use MPLAB ver 7.20 and C18 Compiler ver 2.40 (newer versions can not be used)"

Not sure why this is but it still applies

Steve

mtndurbin
16-01-2008, 18:15
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.

Pulverator
16-01-2008, 19:42
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
Error [1203] too few arguments in function call

So, I went to find the Generate_Pwms(), and I see there are 2 prototypes. One or the other is compiled depending on the macro _FRC_BOARD. So, I assume the is being set wrongly - somewhere. Of course, I'm not sure.

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
could not find file clib.lib

What am I doing wrong!?!? Something must be seriously screwed up...

Mark McLeod
16-01-2008, 22:30
So, I went to find the Generate_Pwms(), and I see there are 2 prototypes. One or the other is compiled depending on the macro _FRC_BOARD. So, I assume the is being set wrongly - somewhere. Of course, I'm not sure.

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
could not find file clib.lib

What am I doing wrong!?!? Something must be seriously screwed up...

Nothing drastically wrong.
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.

bronxbomber92
18-01-2008, 16:11
Thanks. I did add mcc18\lib to my include path before, but it then gave me another linking error:

Error - processor types do not agree across all input files.

What shall I do next? That error suggest that possibly I building for the wrong PIC architecture?

bronxbomber92
18-01-2008, 16:46
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.

Mark McLeod
18-01-2008, 18:44
The problem was that the old 8522 linker scripts were still in the project and I believed those were being used instead.
I hate when that happens...:)