Hy guys, I make my application for Windows/Linux/Mac and I have problem with next using: I'm include in my project next headers: #ifndef WNT #include </tmp/include/windef.h> #include </tmp/include/winbase.h> #include </tmp/include/wingdi.h> #include </tmp/include/winuser.h> #include </tmp/include/winerror.h> #endif And It's cool working with libEMF.so, but what the library of wine I must include ? for the sample, I'm try to use libwine.so.1, gdi32.dll.so,gdiplus.dll.so But my compiler have this errors: ../obj/ExportImage.o: In function `exportimg::eraseEMFPen()': ExportImage.cpp:(.text+0x612): undefined reference to `SelectObject' ExportImage.cpp:(.text+0x622): undefined reference to `DeleteObject' ../obj/ExportImage.o: In function `exportimg::PrintEMFHeader()': ExportImage.cpp:(.text+0x6cd): undefined reference to `CreateEnhMetaFileA' make: KE>4 87 :0B0;>30 `/tmp/Visual3D' ExportImage.cpp:(.text+0x6e5): undefined reference to `SetMapMode' ExportImage.cpp:(.text+0x708): undefined reference to `SetWindowExtEx' ExportImage.cpp:(.text+0x760): undefined reference to `SetViewportExtEx' ExportImage.cpp:(.text+0x7a2): undefined reference to `SetViewportOrgEx' ExportImage.cpp:(.text+0x7ba): undefined reference to `SetBkMode' ExportImage.cpp:(.text+0x7d2): undefined reference to `SetTextAlign' ../obj/ExportImage.o: In function `exportimg::PrintEMFFooter()': ExportImage.cpp:(.text+0x1812): undefined reference to `SelectObject' ExportImage.cpp:(.text+0x1822): undefined reference to `DeleteObject' ExportImage.cpp:(.text+0x1836): undefined reference to `CloseEnhMetaFile' ExportImage.cpp:(.text+0x1841): undefined reference to `DeleteEnhMetaFile' ../obj/ExportImage.o: In function `exportimg::createEMFPen(float*, float)': ExportImage.cpp:(.text+0x187c): undefined reference to `SelectObject' ExportImage.cpp:(.text+0x188c): undefined reference to `DeleteObject' ExportImage.cpp:(.text+0x193e): undefined reference to `CreatePen' ExportImage.cpp:(.text+0x1957): undefined reference to `SelectObject' ../obj/ExportImage.o: In function `exportimg::PrintEMFPrimitive(void*)': ExportImage.cpp:(.text+0x1c25): undefined reference to `MoveToEx' ExportImage.cpp:(.text+0x1ca7): undefined reference to `LineTo' ExportImage.cpp:(.text+0x1d2b): undefined reference to `CreateSolidBrush' ExportImage.cpp:(.text+0x1d7a): undefined reference to `CreatePen' ExportImage.cpp:(.text+0x1d90): undefined reference to `SelectObject' ExportImage.cpp:(.text+0x1da9): undefined reference to `SelectObject' ExportImage.cpp:(.text+0x1e55): undefined reference to `Polygon' ExportImage.cpp:(.text+0x1e6c): undefined reference to `SelectObject' ExportImage.cpp:(.text+0x1e77): undefined reference to `DeleteObject' ExportImage.cpp:(.text+0x1e8e): undefined reference to `SelectObject' ExportImage.cpp:(.text+0x1e99): undefined reference to `DeleteObject' ../obj/ExportImage.o: In function `exportimg::EndPage()': ExportImage.cpp:(.text+0x2233): undefined reference to `CloseEnhMetaFile' ExportImage.cpp:(.text+0x223e): undefined reference to `DeleteEnhMetaFile' ExportImage.cpp:(.text+0x22e2): undefined reference to `SelectObject' ExportImage.cpp:(.text+0x22f2): undefined reference to `DeleteObject' /usr/bin/ld: Visual3D: hidden symbol `DeleteObject' isn't defined /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status But this function I'm know in gdi ELF library.... Or there another way to use winelib ? Many thanks