Shop OBEX P1 Docs P2 Docs Learn Events
Build Error libLSM9DS1 — Parallax Forums

Build Error libLSM9DS1

I am trying to add my own code to the libLSM9DS1 sensor library but I am getting an error when I try to build my program. The error is:
C:\Users\David\AppData\Local\Temp\ccOz5zQf.o: In function `_main':
(.text+0x108): undefined reference to `_cexpf'
C:\Users\David\AppData\Local\Temp\ccOz5zQf.o: In function `_main':
(.text+0x1b0): undefined reference to `_cexpf'
collect2: ld returned 1 exit status
Done. Build Failed!

Check source for bad function call or global variable name `_cexpf'
C:\Users\David\AppData\Local\Temp\ccOz5zQf.o: In function `_main':
(.text+0x1b0):

Has anyone seen this before? What can I do to fix this?

Thanks.

Comments

  • Not sure why I was getting this error but I found the simple way around was to just start a new script and include the sensor library, rather than trying to build on top of the sensor library itself.
  • I opened the library and it compiled just fine for me. Don't know what you added to the library.

    Mike
Sign In or Register to comment.