Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347406

Summary: sin(a), sqrt(a) translation error
Product: [Tools] CDT Reporter: Youngki KIM <okay.kim>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: major    
Priority: P3 CC: cdtdoug, remy.suen
Version: 7.0.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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.