# Problem with mingw

When I try to compile a program with mingw i get following errors:

```obj\Debug\inc\img\cimg.o||In function `ZN4Cimg8load_rawESsb':|
G:\myTest\inc\img\cimg.cpp|241|undefined reference to `_imp___ZN6LibRawC1Ej'|
G:\myTest\inc\img\cimg.cpp|280|undefined reference to `_imp___ZN6LibRaw9open_fileEPKcx'|
G:\myTest\inc\img\cimg.cpp|281|undefined reference to `_imp___ZN6LibRaw6unpackEv'|
G:\myTestinc\img\cimg.cpp|282|undefined reference to `_imp___ZN6LibRaw13dcraw_processEv'|
G:\myTest\inc\img\cimg.cpp|284|undefined reference to `_imp___ZN6LibRaw20dcraw_make_mem_imageEPi'|
obj\Debug\inc\img\cimg.o||In function `~LibRaw':|
G:\myTest\root\include\libraw\libraw.h|133|undefined reference to `_imp___ZN6LibRaw7recycleEv'|
||=== Build finished: 6 errors, 4 warnings ===|```

I have added libraw.a to my project. Am I missing something?

## Forums:

### This is LibRaw calls. So, it

This is LibRaw calls. So, it looks like you do not properly link with LibRaw

-- Alex Tutubalin