knowledge-database (beta)

Current group: comp.dsp

linker: symbol referencing errors

linker: symbol referencing errors  
Christian Christmann
From:Christian Christmann
Subject:linker: symbol referencing errors
Date:Thu, 20 Jan 2005 13:05:20 +0100
Hi,

I´m having a large c++-project which contains several files and
was written for the TI F240 dsp. My task is to convert the exisiting
code to run on a TI F2812. After having done the necessary modi-
fications I have problems with the TI Code Composer v2.12 linker.
When I compile the project with the build option "preprocessing:
preprocessing only (-ppo)" I get the linker error:

[Linking...] "C:\ti\c2000\cgtools\bin\cl2000" -@"Release.lkf"

undefined first referenced
symbol in file
--------- ----------------
_main C:\ti\c2000\cgtools\lib\rts2800_ml.lib
>> error: symbol referencing errors - './Release/mainapplication.out' not
built

When I set preprocessing to none I get couple of errors like:

[Linking...] "C:\ti\c2000\cgtools\bin\cl2000" -@"Release.lkf"
>> error: symbol _tx_buffer_in is defined multiple times:
C:\ti\Labs\Release\scheduler.obj and
C:\ti\Labs\Release\uart.obj

I don`t understand why the symbols are defined multiple times. Each of my
header
files begins with the ifndef structure like

#ifndef SCHEDULER_H
#define SCHEDULER_H
[snip]
#endif

Thus, the complier seems to have problems with preprocessing.

I would appreciate any hints/ideas how to fix this problem.

If you need further information just let me know.

Thanks.
Chris
   

Copyright © 2006 knowledge-database   -   All rights reserved