Software > Software

Debuging my build.

(1/3) > >>

NOOBinDistress:
The tutorial for 50 dollar robot says  "If you get errors, and you are new to programming, it may be a little difficult to debug at first." Well I have errors and I am new to programing so what should I do. Here are my errors:

Build started 14.4.2007 at 21:25:51

-------- begin --------
avr-gcc (GCC) 4.1.1 (WinAVR 20070122)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Compiling: Photovore_v1.c
re_v1.o

In file included from Photovore_v1.c:20:
SoR_Utils.h:22:48: error: global.h: No such file or directory
SoR_Utils.h:27:60: error: a2d.h: No such file or directory
Photovore_v1.c: In function 'main':
Photovore_v1.c:41: warning: implicit declaration of function 'a2dInit'
Photovore_v1.c:42: warning: implicit declaration of function 'a2dSetPrescaler'
Photovore_v1.c:42: error: 'ADC_PRESCALE_DIV32' undeclared (first use in this function)
Photovore_v1.c:42: error: (Each undeclared identifier is reported only once
Photovore_v1.c:42: error: for each function it appears in.)
Photovore_v1.c:43: warning: implicit declaration of function 'a2dSetReference'
Photovore_v1.c:43: error: 'ADC_REFERENCE_AVCC' undeclared (first use in this function)
Photovore_v1.c:56: warning: implicit declaration of function 'a2dConvert8bit'
make: *** [Photovore_v1.o] Error 1
Build failed with 6 errors and 4 warnings...

What should I do? Please help me someone.

JonHylands:

--- Quote from: NOOBinDistress on April 14, 2007, 07:33:52 PM ---SoR_Utils.h:22:48: error: global.h: No such file or directory
SoR_Utils.h:27:60: error: a2d.h: No such file or directory

--- End quote ---

This is the key to your problem. It can't find the include files global.h and a2d.h. Since both those files are included in the zip file, you might need to re-extract them.

After you fix that, all the other errors will go away...

- Jon

NOOBinDistress:
How exactly do I extract or what ever. Can you give me quick step by step instructions on how to do this. I am getting rid of the files right?

NOOBinDistress:
Please give me step by step instructions on how to "re-extract" because I am very new to programing. Thanks!

hazzer123:
The header files (global.h and a2d.h) cannot be found. They are in the zip file that you downloaded from this site.

Now i have never used the software that you are dealing with, but i think that if you stick the global.h and a2d.h into the project folder, then it should build correctly. If that doesn't work, then look for an INCLUDE folder in the software folders, try copying the header files into there and rebuilding.

Harry

Navigation

[0] Message Index

[#] Next page

Go to full version