HELP!!! I can't build my old helicopter projects anymore (Linker step failure)

2 views
Skip to first unread message

Marc-X

unread,
Nov 9, 2010, 2:01:18 PM11/9/10
to UAVHeliBoard
Dear Gods,

After fiddling with the MP for a while, I went back to see if I could
start the work of porting the MP-H project to the "new" libUDB and
libDCM format. When trying to build my old projects, I get a kick in
the face by my linker.

I have upgraded MPLAB since the last time I built the MP-H projects.
I have tried to re-create them from "scratch" by deleting the .mcp
files and even un-packed a "fresh" copy of MP-H_v2. Nothing will work.
It always halts on the link step:

Below is a cut from the output window:

Cheers!

Marc


Dynamic Memory Usage

region address maximum
length (dec)
------ -------
---------------------
heap 0
0 (0)
stack 0xc00
0x400 (1024)

Maximum dynamic memory (bytes):
0x400 (1024)

ned reference to `VectorAdd'
rmat.o(.text+0x31c): In function `yaw_drift':
C:\Documents and Settings\MARCUS.ADT-ONE\My Documents\My Projects
\PICProjects\PIC based Autopilot\Firmware\MP_H_V2\test\MP_H_V2\rmat.c:
265: undefined reference to `MatrixMultiply'
rmat.o(.text+0x336): In function `PI_feedback':
C:\Documents and Settings\MARCUS.ADT-ONE\My Documents\My Projects
\PICProjects\PIC based Autopilot\Firmware\MP_H_V2\test\MP_H_V2\rmat.c:
279: undefined reference to `VectorAdd'
rmat.o(.text+0x340):C:\Documents and Settings\MARCUS.ADT-ONE\My
Documents\My Projects\PICProjects\PIC based Autopilot\Firmware
\MP_H_V2\test\MP_H_V2\rmat.c:281: undefined reference to `VectorScale'
rmat.o(.text+0x34a):C:\Documents and Settings\MARCUS.ADT-ONE\My
Documents\My Projects\PICProjects\PIC based Autopilot\Firmware
\MP_H_V2\test\MP_H_V2\rmat.c:282: undefined reference to `VectorScale'
rmat.o(.text+0x354):C:\Documents and Settings\MARCUS.ADT-ONE\My
Documents\My Projects\PICProjects\PIC based Autopilot\Firmware
\MP_H_V2\test\MP_H_V2\rmat.c:283: undefined reference to `VectorAdd'
Link step failed.
----------------------------------------------------------------------
Release build of project `C:\Documents and Settings\MARCUS.ADT-ONE\My
Documents\My Projects\PICProjects\PIC based Autopilot\Firmware
\MP_H_V2\test\MP_H_V2\MP_HV2.mcp' failed.
Language tool versions: pic30-as.exe v3.24, pic30-gcc.exe v3.24, pic30-
ld.exe v3.24, pic30-ar.exe v3.24
Tue Nov 09 19:54:27 2010
----------------------------------------------------------------------
BUILD FAILED

John McClelland

unread,
Nov 9, 2010, 2:17:30 PM11/9/10
to uavhel...@googlegroups.com
Marc do you have libdsp-coff.a included in the project? Looks like you are
not linked to the matrix/vector libs.

John

Marcus Fahlén

unread,
Nov 9, 2010, 2:51:06 PM11/9/10
to uavhel...@googlegroups.com
John,

Thanks for your help.

I'm not really sure anymore. I just did a total clean out of the
directory, and then packed out a "fresh" copy that compiled.
Now I'm back in the saddle, trying to ride this bull again!

In other words: Something was wrong in my configuration or directory contents.

Cheers!

Marc

Reply all
Reply to author
Forward
0 new messages