Skip to content

Question to compiling FreeImage 3.19.11 with GCC #48

Description

@herb52

Hello Danoli

I am using FreeImage.dll from (old) version 3.18.0.

Looking for a newer version I found your package. Thanks for it.

After reading the attached documentation I was sure that I can compile it on Windows 10
with Mingw-W64 GCC compiler 10.2.0 or GCC 15.1.0 (downloaded from winlibs: https://winlibs.com/#download-release )

Within cmd.exe I prepared $PATH so that it includes the ..\bin directory for gcc or g++
and started the compiling with
mingw32-make -f makefile.mingw

But e.g. for compiling freeimage.cpp I always get the following errors:

In file included from e:\development\mingw-w64\v10.2.0.posixseh64\x86_64-w64-mingw32\include\corecrt.h:10,
                 from e:\development\mingw-w64\v10.2.0.posixseh64\x86_64-w64-mingw32\include\crtdefs.h:10,
                 from e:\development\mingw-w64\v10.2.0.posixseh64\x86_64-w64-mingw32\include\stddef.h:7,
                 from e:\development\mingw-w64\v10.2.0.posixseh64\lib\gcc\x86_64-w64-mingw32\10.2.0\include\stddef.h:1,
                 from e:\development\mingw-w64\v10.2.0.posixseh64\include\c++\10.2.0\bits\cxxabi_init_exception.h:38,
                 from e:\development\mingw-w64\v10.2.0.posixseh64\include\c++\10.2.0\bits\exception_ptr.h:38,
                 from e:\development\mingw-w64\v10.2.0.posixseh64\include\c++\10.2.0\exception:147,
                 from e:\development\mingw-w64\v10.2.0.posixseh64\include\c++\10.2.0\stdexcept:38,
                 from <command-line>:
e:\development\mingw-w64\v10.2.0.posixseh64\x86_64-w64-mingw32\include\unknwnbase.h: In member function 'HRESULT IUnknown::QueryInterface(Q**)':
e:\development\mingw-w64\v10.2.0.posixseh64\x86_64-w64-mingw32\include\unknwnbase.h:84:29: error: '__mingw_uuidof' was not declared in this scope; did you mean '__mingw_strtof'?
   84 |       return QueryInterface(__uuidof(Q), (void **)pp);
      |                             ^~~~~~~~
e:\development\mingw-w64\v10.2.0.posixseh64\x86_64-w64-mingw32\include\unknwnbase.h:84:29: error: expected primary-expression before '__typeof'
   84 |       return QueryInterface(__uuidof(Q), (void **)pp);
      |                             ^~~~~~~~
e:\development\mingw-w64\v10.2.0.posixseh64\x86_64-w64-mingw32\include\unknwnbase.h: At global scope:
e:\development\mingw-w64\v10.2.0.posixseh64\x86_64-w64-mingw32\include\unknwnbase.h:89:1: error: expected initializer before '<' token
   89 | __CRT_UUID_DECL(IUnknown, 0x00000000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46)

and many others of same type.

What is missing or what do I wrong?

On the other hand is it possible that you build FreeImage.dll and add it to the released package?

Thanks for your help in advance.
Best regards
herb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions