Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Problem compìling after r11701 (related to Direct2D)
oBFusCATed:
Can you build the stc sample and see if it works? There is a chance your compiler (mingw stuff in fact) has missing all the direct2d libs which are required. I think, I'm using mingw-w64 8.x.x.
sodev:
I am using MSVC and i get GDI+ and Direct 2D out-of-the-box without any special setup. I remember in the past even GDI+ wasn't working on MinGW so this might indeed be a compiler issue. You can check setup.h, it should contain #ifdefs for these features to test the compiler version, might give you a hint which version is required.
Thats one of the reasons why i don't like to use GCC on Windows ;)
Miguel Gimenez:
Ok, updating to mingw-w64 with GCC 8.1 did the trick.
--- Quote ---I am using MSVC and i get GDI+ and Direct 2D out-of-the-box without any special setup
--- End quote ---
MSVC has Direct2D activated by default, when using GCC you must activate it explicitly. This is the original setup.h code:
--- Code: ---#if defined(_MSC_VER) && _MSC_VER >= 1600
#define wxUSE_GRAPHICS_DIRECT2D wxUSE_GRAPHICS_CONTEXT
#else
#define wxUSE_GRAPHICS_DIRECT2D 0
#endif
--- End code ---
I don't use any MS product (apart from Windows, of course).
ollydbg:
Do you mean that I have to use MinGW-w64's gcc 8.1 and above?
I have only gcc 7.2 at hand.
stahta01:
The problem was likely an missing header in mingw.org GCC; mingw-w64 has several headers that are not in mingw.org GCC.
--- Quote from: ollydbg on May 20, 2019, 04:48:04 pm ---Do you mean that I have to use MinGW-w64's gcc 8.1 and above?
I have only gcc 7.2 at hand.
--- End quote ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version