Problems when doing building the project,please help.

10 views
Skip to first unread message

stev...@live.cn

unread,
Dec 19, 2010, 2:03:25 PM12/19/10
to UAVHeliBoard
Hi All,

When I try to build the heli project I received the following message
at the very end:

c:\program files\microchip\mplab c30\bin\bin\..\bin/pic30-coff-ld.exe
Error: A heap is required, but has not been specified
c:/program files/microchip/mplab c30/bin/bin/../../lib\libc-
coff.a(vsnprintf.o)(.libc.vsnprintf+0x1e):fake: undefined reference to
`assert'
c:/program files/microchip/mplab c30/bin/bin/../../lib\libc-
coff.a(vsnprintf.o)(.libc.vsnprintf+0x22):fake: undefined reference to
`alloc'
BUILD FAILED: Mon Dec 20 05:49:10 2010

Does anyone know how to fix these problems?
I am using the C30 compiler v3.25 and MPLAB v7.5.
Thanks.

Steven

John McClelland

unread,
Dec 19, 2010, 3:13:18 PM12/19/10
to uavhel...@googlegroups.com
Hi Steven

Compiler problems are sometimes difficult to trace down. Here are a couple
things you might try:

Be sure libdsp-coff.a is showing up under Library Files and p30f4011.gld
under Linker Script in your mcw window

Build using the Build All option

Be sure you are in Release Mode at the top of the IDE.

If this doesn't solve the problem, let me know.

John

stev...@live.cn

unread,
Dec 19, 2010, 4:48:56 PM12/19/10
to UAVHeliBoard
Hi John,

I am still getting the same errors. Is there any other way to solve
these problems? Thank you.

Regards,
Steven

John McClelland

unread,
Dec 19, 2010, 5:02:15 PM12/19/10
to uavhel...@googlegroups.com
Steven

Somehow your and my messages are not appending to this...check your email
settings. It is useful to have the entire converstation at times.

John


----- Original Message -----
From: <stev...@live.cn>
To: "UAVHeliBoard" <UAVHel...@googlegroups.com>

bw

unread,
Jan 6, 2011, 11:34:51 AM1/6/11
to UAVHeliBoard
I'm trying to build the MP-Quad project and get the following errors:

c:/program files/microchip/mplabc30/v3.25/bin/bin/../../lib\libc-
coff.a(vsnprintf.o)(.libc.vsnprintf+0x1e):fake: undefined reference to
`assert'
c:/program files/microchip/mplabc30/v3.25/bin/bin/../../lib\libc-
coff.a(vsnprintf.o)(.libc.vsnprintf+0x22):fake: undefined reference to
`alloc'
Link step failed.

I have both libdsp-coff.a and p30f4011.gld in the mcw window.

I'm using mplabCV3.25

I also tried creating a new project and adding the source files but
get the same errors

Any thoughts?

Bryan



On Dec 19 2010, 3:02 pm, "John McClelland" <mcclelland.j...@gmail.com>
wrote:

bw

unread,
Jan 7, 2011, 12:40:14 AM1/7/11
to UAVHeliBoard
I switched to an older MPLAB version and I can build now....

it seems to be a linker issue with cV3.25
Reply all
Reply to author
Forward
0 new messages