DSPRelated.com
Forums

why this error?

Started by Uday Kumar Majeti April 4, 2004
Hello everybody,
 
 when i try to run the following program(files attached) i'm getting the error as:
 
"C:\Program Files\Analog Devices\VisualDSP\cc21k.exe" "C:\Program Files\AnalogDevices\VisualDSP\21k\examples\C_Examples\uday\matvec\debug\MxNxNx1.doj" -T "C:\Program Files\Analog Devices\VisualDSP\21k\examples\C_Examples\uday\matvec\matvec.ldf" -21061 -L "C:\Program Files\Analog Devices\VisualDSP\21k\examples\C_Examples\uday\matvec\debug" -o "C:\Program Files\Analog    Devices\VisualDSP\21k\examples\C_Examples\uday\matvec\debug\matvec.dxe"
[Error E2007]  symbol '_main' referenced in file 'C:\PROGRAM FILES\ANALOG DEVICES\VISUALDSP\21K\LIB\060_HDR.DOJ' could not be resolved  Linker finished with 1 error(s) 0 warning(s)
CC21K: Fatal Error: Link failed  Tool failed with exit/exception code: 1.
Build was unsuccessful.

Win an evening with the Indian cricket captain: Yahoo! India Promos.

Attachment (not stored)
MxNxNx1.asm
Type: application/octet-stream

Attachment (not stored)
matvec.ldf
Type: application/octet-stream


The following is from a reply I received from ADI support about a similar problem that occurred when I turned "eliminate" on in the ldf global properties :
Hi Steve,

You need to use the keep command as follows:

 KEEP( _main,___ctor_NULL_marker,___lib_end_of_heap_descriptions )

According to our tools group, this is the only object that comes from the
runtime environment that needs to be kept.  I've put in a documentation
errata
against this, because it should be mentioned in the eliminate() command
description or in the c library manual.

Sorry for the confusion.

Analog Devices
DSP Support Group

This command should go just after the P0 section in your ldf file as :
PROCESSOR p0
{
        KEEP(  _main, ___ctor_NULL_marker, ___lib_end_of_heap_descriptions)

You should only nee this if your ldf contains :

ELIMINATE()

At 12:23 PM 4/4/2004, Uday Kumar Majeti wrote:
Hello everybody,
 
 when i try to run the following program(files attached) i'm getting the error as:
 
"C:\Program Files\Analog Devices\VisualDSP\cc21k.exe" "C:\Program Files\AnalogDevices\VisualDSP\21k\examples\C_Examples\uday\matvec\debug\MxNxNx1.doj" -T "C:\Program Files\Analog Devices\VisualDSP\21k\examples\C_Examples\uday\matvec\matvec.ldf" -21061 -L "C:\Program Files\Analog Devices\VisualDSP\21k\examples\C_Examples\uday\matvec\debug" -o "C:\Program Files\Analog    Devices\VisualDSP\21k\examples\C_Examples\uday\matvec\debug\matvec.dxe"
[Error E2007]  symbol '_main' referenced in file 'C:\PROGRAM FILES\ANALOG DEVICES\VISUALDSP\21K\LIB\060_HDR.DOJ' could not be resolved  Linker finished with 1 error(s) 0 warning(s)
CC21K: Fatal Error: Link failed  Tool failed with exit/exception code: 1.
Build was unsuccessful.

Win an evening with the Indian cricket captain: Yahoo! India Promos.

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  Send an email to a...@yahoogroups.com

To Post:  Send an email to a...@yahoogroups.com

To Leave: Send an email to a...@yahoogroups.com

Archives: http://groups.yahoo.com/group/adsp

Other Groups: http://www.dsprelated.com/groups.php3

Yahoo! Groups Links To

--------------------------
Steve Holle
Link Communications, Inc.
1035 Cerise Road
Billings, Montana  59101-7378
406.245.5002
s...@link-comm.com
--------------------------