Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347406 - sin(a), sqrt(a) translation error
Summary: sin(a), sqrt(a) translation error
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0.2   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 03:59 EDT by Youngki KIM CLA
Modified: 2011-05-30 02:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Youngki KIM CLA 2011-05-27 03:59:00 EDT
when I use math library functions such as sqrt() and sin() with variables, eclipse shows me error message "undefined reference to 'sin'".

sin(100); ==> OK

float a;
sin(a); ==> error "undefined reference to `sin'"


-- Configuration Details --
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.linuxtools.product)
Installed Features:
 org.eclipse.platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi
Comment 1 Remy Suen CLA 2011-05-27 08:09:58 EDT
What is this? C/C++?
Comment 2 Youngki KIM CLA 2011-05-27 08:57:51 EDT
(In reply to comment #1)
> What is this? C/C++?
Yes.  C coding.
Comment 3 Remy Suen CLA 2011-05-27 09:01:02 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > What is this? C/C++?
> Yes.  C coding.

Please open bugs with CDT. This has nothing to do with Eclipse's plug-in for Apache Ant.
Comment 4 Markus Schorn CLA 2011-05-30 02:17:44 EDT
The parser does not provide this kind of error, it is emmited by your linker.
Comment 5 Youngki KIM CLA 2011-05-30 02:22:47 EDT
(In reply to comment #4)
> The parser does not provide this kind of error, it is emmited by your linker.

I agree with your comment. This morning I updated my packages in Ubuntu 10.04 and the error's gone.