[cfe-users] Usage of CLang CUDA target with MinGW stdlib

KOLANICH via cfe-users cfe-users at lists.llvm.org
Fri Nov 2 14:23:34 PDT 2018

Hello everybody.

Could anyone clarify how to use this cuda target (-std=c++11 -x cuda) with MinGW stdlib?

I mean I get errors

<censored2>\LLVM-7.0.0-win32\lib\clang\7.0.0\include\cuda_wrappers\new:41:12: error: use of undeclared identifier 'malloc' return ::malloc(size);
<censored2>\LLVM-7.0.0-win32\lib\clang\7.0.0\include\cuda_wrappers\new:58:7: error: no type named 'free' in the global namespace ::free(ptr);

and I wonder what I should do to fix them.

More information about the cfe-users mailing list