Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Default code will not compile (http://www.chiefdelphi.com/forums/showthread.php?t=61832)

bronxbomber92 16-01-2008 17:37

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:

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

Re: Default code will not compile
 
Quote:

Originally Posted by bronxbomber92 (Post 679484)
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

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.

Pulverator 16-01-2008 19:42

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
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
Code:

could not find file clib.lib
What am I doing wrong!?!? Something must be seriously screwed up...

Mark McLeod 16-01-2008 22:30

Re: Default code will not compile
 
Quote:

Originally Posted by Pulverator (Post 679586)
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
Code:

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

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:

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

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.

Mark McLeod 18-01-2008 18:44

Re: Default code will not compile
 
Quote:

Originally Posted by bronxbomber92 (Post 680979)
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...:)


All times are GMT -5. The time now is 11:04.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi