# Cant Compile GDI+

This is a discussion on Cant Compile GDI+ within the Windows Programming forums, part of the Platform Specific Boards category; I have downloaded the GDI+ .h, .lib, and .dll files and when I put them in their proper directories (.h ...

1. ## Cant Compile GDI+

I have downloaded the GDI+ .h, .lib, and .dll files and when I put them in their proper directories (.h in include, .lib in lib, and .dll in application folder), I recieve numerous compiler errors:

Code:
```534 C:\Dev-Cpp\include\SDK\GdiplusEnums.h use of enum `EmfPlusRecordType' without previous declaration
548 C:\Dev-Cpp\include\SDK\GdiplusEnums.h invalid use of undefined type `enum Gdiplus::EmfPlusRecordType'
543 C:\Dev-Cpp\include\SDK\GdiplusEnums.h forward declaration of `enum Gdiplus::EmfPlusRecordType'
548 C:\Dev-Cpp\include\SDK\GdiplusEnums.h enumerator value for `WmfRecordTypeSetBkColor' not integer constant```
Then there are like 500 or so just like that and it would take me like hours to copy and paste them all, since Dev C++ only allows you to copy one at a time. I'm including <windows.h>, then <GdiPlus.h> and I'm linking GdiPlus.lib. Is there something I'm doing wrong? There could be a slight possibility that I have an improper version of GDI+ because I couldnt find a download anywhere. I had to install SDK to get the files like I read on a tutorial.

Thanks in advance for any help!!!

2. Dev-C++ uses .a files, so I don't think .lib files will work for it.

3. Well, when I add go to add a .lib file, the "Files of Type:" says "Library (*.a,*.lib)". But if this is the case, where could I download the .a file?

Thanks.

4. You build it from the redistributable gdiplus.dll with reimp, which is part of mingw-utils.

5. Thanks for the information. I was able to build the .a file from the .lib file. I couldnt find out how to build it from the .dll file. However, that didnt help me any. Where could I download the most recent/proper header files (because I think thats my problem)?

Thanks.

Popular pages Recent additions