在 2019年1月14日星期一 UTC+8下午5:47:10,J. Kiszka写道: > On 14.01.19 07:08, JJZhu wrote: > > Dear all, > > > > I am writing bare-metal inmates application following the template > > gic-demo.c on Ultrazed board (ARM64) > > But I also need to use math functions like sin(),sqrt() functions. > > > > > > But when I #include <math.h>, the error appears: > > > > /home/ubuntu/jailhouse-servo/inmates/demos/arm64/./hello-demo.c:17:18: > > fatal error: math.h: No such file or directory > > #include <math.h> > > ^ > > compilation terminated. > > > > > > Does anyone knows how to use math functions? > > Thank you! > > The inmate library has no math support so far. Two options: > > - dig into the details of linking against some math providing library (I > haven't done any research so far, thus I cannot provide > recommendations yet) and provide patches to do that > > - use some RTOS as inmate that already has solved that problem > > Jan > > -- > Siemens AG, Corporate Technology, CT RDA IOT SES-DE > Corporate Competence Center Embedded Linux
Hi Jan, Ok, thank you. I will try the first option first. -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
