oneTBB icon indicating copy to clipboard operation
oneTBB copied to clipboard

'_MCW_DN' was not declared in this scope

Open du-xinyi opened this issue 2 years ago • 1 comments

I use mingw(version:8.1) to compile with cmake. Cmake works fine, but this problem occurs at Generate. What should I do U$K_V7JSSBP3DSC6$ QC$~1

du-xinyi avatar Aug 01 '22 11:08 du-xinyi

@Du-Xinyi, thank you for reporting the issue I was able to reproduce it on my side and found that _MCW_DN and other float.h stuff are provided by MinGW only when __STRICT_ANSI__ macro is not defined. This problem moves away when compiling with -U__STRICT_ANSI. But unfortunately, I saw other problems with oneTBB build using MinGW.

Currently, MinGW is outside of oneTBB support matrix, so I would not consider this as a oneTBB issue. You can submit a PR to the oneTBB repo if you want this issue to be fixed in oneTBB product.

kboyarinov avatar Aug 22 '22 08:08 kboyarinov

@MehdiChinoune @jschueller could you please take a look?

isaevil avatar Oct 05 '22 11:10 isaevil

retry with v2021.6.0, that one is ok, I use a more recent mingw though (10.0.0 / gcc 12)

jschueller avatar Oct 05 '22 11:10 jschueller

@Du-Xinyi seems like it works on newer versions of MinGW. Please reopen issue if your problem persists.

isaevil avatar Oct 05 '22 13:10 isaevil

Fixed by https://github.com/mingw-w64/mingw-w64/commit/c6e13e0c105eab7797c2373819b49fff6b05566c, So you need mingw-w64>=8.0.1 The MINGW GCC 8.1.0 compiler from https://sourceforge.net/p/mingw-w64 was built against mingw-w64 6.0.0

MehdiChinoune avatar Oct 05 '22 19:10 MehdiChinoune