[cfe-dev] Clang, #include <math.h>

James Molloy James.Molloy at arm.com
Tue Oct 11 00:34:15 PDT 2011


Hi,

<math.h> is part of the C standard library, not part of the compiler headers. Clang does not provide it.

You could look into one of the "standard" standard libraries, such as RedHat Newlib or Glibc, compile that yourself for your target and point Clang at its /include directory.

Cheers,

James

From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On Behalf Of Jonas Paulsson
Sent: 11 October 2011 08:24
To: cfe-dev at cs.uiuc.edu
Subject: [cfe-dev] Clang, #include <math.h>

Hi,

I'm working on a new llc target and would like to generate .ll code with Clang.

I find that I can't #include <math.h>, if I specify my target, or eg mips, arm, bfin...

What must be done in order to do this?

Thank you,

Jonas Paulsson

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111011/05e0ef16/attachment.html>


More information about the cfe-dev mailing list