'Usage .a libs, that created via bash, in windows

In my program I needed to use some functions from Quantum lib. I work in windows, but for creating a .a file it needed to use bash. As a simplest way, I used wsl (windows subsystem for linux) and after that jast copy .a and .h files and work with them in my programm.

Prorgamm throws this errors:

C:\Projects\Cproject\QT\Mask\build-Mask-Desktop-Debug\..\Mask\processingBlock.cpp:351: error: undefined reference to `m3Quant(image_cc*)'
debug/processingBlock.o: In function `ZN15ProcessingBlock8analysisER6QMTIFFR8image_cci':
C:\Projects\Cproject\QT\Mask\build-Mask-Desktop-Debug/../Mask/processingBlock.cpp:351: undefined reference to `m3Quant(image_cc*)'
C:\Projects\Cproject\QT\Mask\build-Mask-Desktop-Debug\..\Mask\processingBlock.cpp:351: error: undefined reference to `m3euler26(image_cc*, long*)'
:-1: error: collect2.exe: error: ld returned 1 exit status

Are this errors conected with this metod of creating .a file?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source