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. | |||
| |||
| |||
|
why this error?
Started by ●April 4, 2004
Reply by ●April 5, 20042004-04-05
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,-------------------------- Steve Holle Link Communications, Inc. 1035 Cerise Road Billings, Montana 59101-7378 406.245.5002 s...@link-comm.com -------------------------- |