Society of Robots - Robot Forum
Software => Software => Topic started by: Jdog on January 07, 2009, 08:42:46 PM
-
Can I use the same makefile for every program I compile as long as it's for the same mcu?
The reason I ask this is because on the Axon source code page, the most recent version of the photovore code does not have a makefile, so I tried to use this code, but with the makefile from the older version, and I got 7 errors.
These were the errors:
Axon.o: In function `reset_timer_1':
SoR_Utils.h:174: undefined reference to `timer1ClearOverflowCount'
Axon.o: In function `reset_timer_3':
SoR_Utils.h:186: undefined reference to `timer3ClearOverflowCount'
Axon.o: In function `reset_timer_4':
SoR_Utils.h:192: undefined reference to `timer4ClearOverflowCount'
Axon.o: In function `reset_timer_5':
SoR_Utils.h:198: undefined reference to `timer5ClearOverflowCount'
Axon.o: In function `main':
Axon.c:51: undefined reference to `timer3Init'
Axon.c:52: undefined reference to `timer4Init'
Axon.c:53: undefined reference to `timer5Init'
make: *** [Axon.elf] Error 1
Build failed with 7 errors and 0 warnings...
-
Your makefile has to reference all the files included in your project
-
i think you need to change your makefile SRCS to use timer640.c instead of timer8x.c.
-
Your makefile has to reference all the files included in your project
How do I do that?
-
my bad . . .
http://www.societyofrobots.com/robotforum/index.php?topic=6318.msg48423#msg48423