Need help with Linker Error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Need help with Linker Error

1,973 次查看
RichSMD
Contributor II
I am trying to build a project we have been working on for some time.  Until today we've been able to build successfully, but today we are getting the following error:
 
"Link Error  : Undefined : "_fpscr" Reference from "_fp_f_directed_rounding" in fp_coldfire.o"
 
When I examine the fp_coldfire.o module I can see numerous references to this symbol.  It appears to have something to do with floating point.  I suspect it stands for "floating point status/control Register", even though there is not such register on the Coldfire mcf5475 we are using.
 
So far I have examined the source files and compared them with an earlier copy of the project that does still build.  I've also examined the target settings in CodeWarrior, looking for changes.  While there are obviously changes, I don't see anything that I can remotely see as affecting this linker error.
 
Has anyone else ever seen an error like this?  Any constructive suggestions how to chase this down?
 
Any help would be appreciated,
 
Rich Livingston
Singulex, Inc.
 
标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

935 次查看
CrasyCat
Specialist III
Hello
 
Just my 2 cents on that one.
 
Did you change the value in the floating point drop down list in the Coldfire processor panel?
Are you using a Chip with a floating point unit?
With which MSL & Runtime library files are you linking your application?
 
If you have specified you want to use Hardware floating point, you need to link the _FPU_ library to your application.
 
Please check {Install}\Help\PDF\ColdFire_Build_Tools_Reference.pdf chapter "ColdFire Runtime Libraries" section "MSL for ColdFire Development" -> "Using MSL for ColdFire" for information on naming convention for available library files.
 
If this does not help I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.
 
CrasyCat
0 项奖励
回复

935 次查看
RichSMD
Contributor II
I checked all that, all the settings in the project are the same, and I am including the _FPU_ runtime modules.  I ended up solving the problem by backing up to an earlier version of the project that did compile and then bringing in sets of files to bring it up to date again.  Once it was up to date it compiled correctly!  I don't know what was the problem, but am just relieved that I got past it.
 
Thanks for your assistance,
 
Rich L.
0 项奖励
回复