# I'm using amb82-mini + MLX90640 but I get compilation errors, can anyone help me?

**URL:** <https://forum.amebaiot.com/t/im-using-amb82-mini-mlx90640-but-i-get-compilation-errors-can-anyone-help-me/1781>\
**Category:** Peripherals\
**Tags:** evb-amb82, rtl8735b\
**Created:** [April 2, 2023, 3:26pm UTC](https://forum.amebaiot.com/t/im-using-amb82-mini-mlx90640-but-i-get-compilation-errors-can-anyone-help-me/1781 "2023-04-02T15:26:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ponrocwulin](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/ponrocwulin/32/1354_2.png) [@ponrocwulin](https://forum.amebaiot.com/u/ponrocwulin)\
**Post date:** [April 2, 2023, 3:26pm UTC](https://forum.amebaiot.com/t/im-using-amb82-mini-mlx90640-but-i-get-compilation-errors-can-anyone-help-me/1781/1 "2023-04-02T15:26:37Z")

</div>

C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop\_mlx90640\ObjectDetectionLoop\_mlx90640.ino: In function ‘void loop()’:  
C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop\_mlx90640\ObjectDetectionLoop\_mlx90640.ino:37:9: warning: unused variable ‘vdd’ [-Wunused-variable]  
37 | float vdd = MLX90640\_GetVdd(frameData, &mlx90640Params);  
| ^~~  
c:/users/ponroc/appdata/local/arduino15/packages/realtek/tools/ameba\_pro2\_toolchain/1.0.1-p1/bin/../lib/gcc/arm-none-eabi/10.3.0/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Ponroc\AppData\Local\Temp\arduino\sketches\3D2BFA0F52C6596E9659016EDC563013\sketch\ObjectDetectionLoop\_mlx90640.ino.cpp.o: in function `loop': C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop_mlx90640/ObjectDetectionLoop_mlx90640.ino:34: undefined reference to `MLX90640\_GetFrameData(unsigned char, unsigned short\*)’  
c:/users/ponroc/appdata/local/arduino15/packages/realtek/tools/ameba\_pro2\_toolchain/1.0.1-p1/bin/../lib/gcc/arm-none-eabi/10.3.0/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop\_mlx90640/ObjectDetectionLoop\_mlx90640.ino:37: undefined reference to `MLX90640_GetVdd(unsigned short*, paramsMLX90640 const*)' c:/users/ponroc/appdata/local/arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1/bin/../lib/gcc/arm-none-eabi/10.3.0/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop_mlx90640/ObjectDetectionLoop_mlx90640.ino:38: undefined reference to `MLX90640\_GetTa(unsigned short\*, paramsMLX90640 const\*)’  
c:/users/ponroc/appdata/local/arduino15/packages/realtek/tools/ameba\_pro2\_toolchain/1.0.1-p1/bin/../lib/gcc/arm-none-eabi/10.3.0/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop\_mlx90640/ObjectDetectionLoop\_mlx90640.ino:39: undefined reference to `MLX90640_GetImage(unsigned short*, paramsMLX90640 const*, float*)' c:/users/ponroc/appdata/local/arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1/bin/../lib/gcc/arm-none-eabi/10.3.0/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop_mlx90640/ObjectDetectionLoop_mlx90640.ino:42: undefined reference to `MLX90640\_CalculateTo(unsigned short\*, paramsMLX90640 const\*, float, float, float\*)’  
c:/users/ponroc/appdata/local/arduino15/packages/realtek/tools/ameba\_pro2\_toolchain/1.0.1-p1/bin/../lib/gcc/arm-none-eabi/10.3.0/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Ponroc\AppData\Local\Temp\arduino\sketches\3D2BFA0F52C6596E9659016EDC563013\sketch\ObjectDetectionLoop\_mlx90640.ino.cpp.o: in function `setup': C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop_mlx90640/ObjectDetectionLoop_mlx90640.ino:18: undefined reference to `MLX90640\_I2CInit()’  
c:/users/ponroc/appdata/local/arduino15/packages/realtek/tools/ameba\_pro2\_toolchain/1.0.1-p1/bin/../lib/gcc/arm-none-eabi/10.3.0/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop\_mlx90640/ObjectDetectionLoop\_mlx90640.ino:21: undefined reference to `MLX90640_SetResolution(unsigned char, unsigned char)' c:/users/ponroc/appdata/local/arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1/bin/../lib/gcc/arm-none-eabi/10.3.0/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop_mlx90640/ObjectDetectionLoop_mlx90640.ino:24: undefined reference to `MLX90640\_SetRefreshRate(unsigned char, unsigned char)’  
c:/users/ponroc/appdata/local/arduino15/packages/realtek/tools/ameba\_pro2\_toolchain/1.0.1-p1/bin/../lib/gcc/arm-none-eabi/10.3.0/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop\_mlx90640/ObjectDetectionLoop\_mlx90640.ino:28: undefined reference to `MLX90640_DumpEE(unsigned char, unsigned short*)' c:/users/ponroc/appdata/local/arduino15/packages/realtek/tools/ameba_pro2_toolchain/1.0.1-p1/bin/../lib/gcc/arm-none-eabi/10.3.0/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Ponroc\Documents\Arduino\ObjectDetectionLoop_mlx90640/ObjectDetectionLoop_mlx90640.ino:29: undefined reference to `MLX90640\_ExtractParameters(unsigned short\*, paramsMLX90640\*)’  
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

---

<div class="post-metadata">

**Author:** ![wyy](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@wyy](https://forum.amebaiot.com/u/wyy)\
**Post date:** [April 3, 2023, 3:20am UTC](https://forum.amebaiot.com/t/im-using-amb82-mini-mlx90640-but-i-get-compilation-errors-can-anyone-help-me/1781/2 "2023-04-03T03:20:12Z")

</div>

Hi @ponrocwulin

`ld.exe undefined reference` errors usually mean that the functions cannot be found.  
can you provide more information on what you are trying to do, what code and libraries you are using?
