Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Error : `abs' undeclared (first use this function)
Error : `abs' undeclared (first use this function) [message #85131] Wed, 05 November 2003 05:03 Go to next message
Eclipse UserFriend
Originally posted by: deuff.nii.ac.jp

Hello,

I get this error when I build my C++ project.

Error : `abs' undeclared (first use this function)

I think the builder doesn't know where math.h is. But I don't know how I can
indicate to it the location !...

Could someone help me ?

Thank you very much,

Dominique Deuff
Re: Error : `abs' undeclared (first use this function) [message #85193 is a reply to message #85131] Wed, 05 November 2003 19:29 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Make sure you include the header ( #include <math.h>), and assuming you are
using a Managed Make project, in the project properties click on C/C++
Build. Then in the Configuration settings select C++ Compiler / Directories
and enter the path to the directory containing math.h there.

The directories specified there are passed to the compiler as include paths
(-I). These paths are also used by the parser which will affect the outcome
of things like search and code complete.

-Andrew

"Dominique Deuff" <deuff@nii.ac.jp> wrote in message
news:boa08a$38c$1@eclipse.org...
> Hello,
>
> I get this error when I build my C++ project.
>
> Error : `abs' undeclared (first use this function)
>
> I think the builder doesn't know where math.h is. But I don't know how I
can
> indicate to it the location !...
>
> Could someone help me ?
>
> Thank you very much,
>
> Dominique Deuff
>
>
>
Previous Topic:How to get IDs of Views
Next Topic:Decorating labels in "C/C++ Projects" View
Goto Forum:
  


Current Time: Thu Dec 26 19:40:46 GMT 2024

Powered by FUDForum. Page generated in 0.03339 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top