Another build failed

Here is the place for all your dsPic or autopilot questions.

Moderator: lukasz

Another build failed

Postby crashmatt » Mon Apr 11, 2011 5:55 pm

Just downloaded the latest repository code. It doesn't build.
What did I get wrong?

tmp\sensors.o(.text+0x100): In function `sensors_task':
C:\Users\Matt\Documents\My Projects\RC Autopilot\UAV Code\Gluonpilot\Firmware\rtos_pilot\sensors.c:77: undefined reference to `hmc5843_init'
tmp\sensors.o(.text+0x230):C:\Users\Matt\Documents\My Projects\RC Autopilot\UAV Code\Gluonpilot\Firmware\rtos_pilot\sensors.c:142: undefined reference to `hmc5843_read'
tmp\rtos_pilot.o(.text+0x34): In function `main':
C:\Users\Matt\Documents\My Projects\RC Autopilot\UAV Code\Gluonpilot\Firmware\rtos_pilot\rtos_pilot.c:60: undefined reference to `i2c_init'
crashmatt
 
Posts: 2
Joined: Fri Mar 18, 2011 6:12 pm

Re: Another build failed

Postby Tom » Mon Apr 11, 2011 6:27 pm

I suppose I have forgotten to include the files in the project (or checked in the code, but didn't check in the project file).

Add the file "hmc5843.c" and "hmc5843.h" from the "libs" folder to the projects (tree structure on the left).

This should do the trick ;-)
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Another build failed

Postby crashmatt » Mon Apr 11, 2011 6:54 pm

That worked, thanks Tom.
crashmatt
 
Posts: 2
Joined: Fri Mar 18, 2011 6:12 pm


Return to Firmware

Who is online

Users browsing this forum: No registered users and 4 guests

cron