Build Error

Been a while since I used C++. I searched the threads with you search option and didn’t find any similar errors. Can someone please tell me in plain English what
“Couldn’t locate build tool. Check tool locations.
BUILD FAILED: Sat Jan 22 11:47:46 2005”
means. Then tell me how to fix it, cause I have no idea what I’m doing.

Have you installed the compiler? Remember that you need both the compiler and the IDE to compile your code. If you have, go to Project->Build->Project in the menu bar of the IDE, and make sure that all the paths are correct.

Re-installed everything in correct order (according to other team members) and am now getting new errors, any updates to the code I should know about, I’ll copy the entire message:
“Clean: Deleting intermediary and output files.
Clean: Deleted file “H:\C Programming\EDU_Default_02-16-04\EduCode\ifi_utilities.o”.
Clean: Deleted file “H:\C Programming\EDU_Default_02-16-04\EduCode\main.o”.
Clean: Deleted file “H:\C Programming\EDU_Default_02-16-04\EduCode\printf_lib.o”.
Clean: Deleted file “H:\C Programming\EDU_Default_02-16-04\EduCode\ifi_startup.o”.
Clean: Deleted file “H:\C Programming\EDU_Default_02-16-04\EduCode\user_routines_fast.o”.
Clean: Done.
Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “ifi_utilities.c” -fo=“ifi_utilities.o” /i"C:\mcc18\h” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “main.c” -fo=“main.o” /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “printf_lib.c” -fo=“printf_lib.o” /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
File ‘printf_lib.o’ could not write COFF symbol table.
Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “ifi_startup.c” -fo=“ifi_startup.o” /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “user_routines_fast.c” -fo=“user_routines_fast.o” /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “user_routines.c” -fo=“user_routines.o” /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
H:\C Programming\EDU_Default_02-16-04\EduCode\ifi_picdefs.h:1083:Error: syntax error
Halting build on first failure as requested.
BUILD FAILED: Sat Jan 22 13:27:28 2005"

Fun, fun, fun. I wish I understood what it was trying to tell me.

Well that last message it gave you I think means that there was a syntax error in your program on line 1083 of ifi_picdefs.h. It looks like you are trying to write code for the edubot which I have never done, so thats about all I can tell you.

It looks like its just a syntax error in ifi_picdefs.h on line 1083, just redownload that from Kevin Watson’s site.

The line in red is the first indication of trouble. The COFF is an intermediate file that gets created during the compile. It may be being blocked from creating the file for some reason, maybe file access privledges? The COFF file is called EduCode.cof in the EDU default code folder (H:\C Programming\EDU_Default_02-16-04\EduCode).

Got new code, the default runs fine, now I get to kill it. Thanks everyone.

I have a little doubt…

I can’t compile cause the linker don’t find the <stdio.h> (1) :ahh:

and if I get a <stdio.h> from a common compiler, the linker asks for more two files *.h (2)… and even if I get this two files, then the compiler says that there’s a syntax error (3) on the line 174 of <stdio.h> (4)… anyone knows what i could do?

screens:

(1)

Make: The target “R:\FIRST 2005\Programação\2005 code\frc-code-1-12-2005v2.4\FrcCode2005v2.4\main.o” is out of date.
Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “main.c” -fo=“main.o” /i"C:\mcc18\h" -D_FRC_BOARD -D_USE_CMU_CAMERA -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -nw=2066
Make: The target “R:\FIRST 2005\Programação\2005 code\frc-code-1-12-2005v2.4\FrcCode2005v2.4\user_SerialDrv.o” is out of date.
Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “user_SerialDrv.c” -fo=“user_SerialDrv.o” /i"C:\mcc18\h" -D_FRC_BOARD -D_USE_CMU_CAMERA -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -nw=2066
R:\FIRST 2005\Programação\2005 code\frc-code-1-12-2005v2.4\FrcCode2005v2.4\user_SerialDrv.c:30: unable to locate ‘stdio.h’
error 1 spawning c:\mcc18\bin\cpp18
Halting build on first failure as requested.
BUILD FAILED: Tue Jan 25 08:51:30 2005

(2)

Make: The target “R:\FIRST 2005\Programação\2005 code\frc-code-1-12-2005v2.4\FrcCode2005v2.4\main.o” is out of date.
Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “main.c” -fo=“main.o” /i"C:\mcc18\h" -D_FRC_BOARD -D_USE_CMU_CAMERA -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -nw=2066
Make: The target “R:\FIRST 2005\Programação\2005 code\frc-code-1-12-2005v2.4\FrcCode2005v2.4\user_SerialDrv.o” is out of date.
Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “user_SerialDrv.c” -fo=“user_SerialDrv.o” /i"C:\mcc18\h" -D_FRC_BOARD -D_USE_CMU_CAMERA -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -nw=2066
C:\mcc18\h\stdio.h:13: unable to locate ‘_defs.h’
C:\mcc18\h\stdio.h:17: unable to locate ‘_nfile.h’
error 1 spawning c:\mcc18\bin\cpp18
Halting build on first failure as requested.
BUILD FAILED: Tue Jan 25 09:13:02 2005

(3)

Make: The target “R:\FIRST 2005\Programação\2005 code\frc-code-1-12-2005v2.4\FrcCode2005v2.4\main.o” is up to date.
Make: The target “R:\FIRST 2005\Programação\2005 code\frc-code-1-12-2005v2.4\FrcCode2005v2.4\user_SerialDrv.o” is out of date.
Executing: “c:\mcc18\bin\mcc18.exe” -p=18F8520 “user_SerialDrv.c” -fo=“user_SerialDrv.o” /i"C:\mcc18\h" -D_FRC_BOARD -D_USE_CMU_CAMERA -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- -nw=2066
C:\mcc18\h\stdio.h:174:Error: syntax error
Halting build on first failure as requested.
BUILD FAILED: Tue Jan 25 09:13:52 2005

(4) this is the line 174 from <stdio.h>

char _FAR *_Cdecl _FARFUNC strerror(int __errnum);

Wait… you’re trying to use an x86 source file to compile on an 8-bit PIC processor? Yeah, I can see why that might cause some problems. Download the new C18 compiler that Dave talked about at kickoff… it has all the header files you need.

Capenga, you are storing your code in a path that is longer then the 60 something characters that the compiler allows. You need to move it to a shorter path, such as: R:\FrcCode2005v2.4

You also need to revert whatever you did to stdio.h, like jgannon said.

If you don’t have it (It’s been more than 2 weeks), then talk to someone. I’m sure someone will send it to you for FIRST stuff.

I recieved this error message when building…I didn’t want to create another thread, so I’m posting it here…

Error - could not find definition of symbol 'getLeftEncoder' in file 'C:\...Robotics\CODE\00_code4\user_routines_fast.o'.

I have the function getLeftEncoder() declared in “encoder.h”, and I included “encoder.h” in “user_routines_fast.c”. I don’t what to do. Any suggestions?

Is encoder.c included in your project?

We got it figured out, Thanks.