On Fri, Nov 9, 2018 at 11:31 AM KOLANICH <kola...@mail.ru> wrote: > > -nocudainc should get clang's headers out of your > >way, but it will be up to you to provide the equivalent. > > Yes, corriander provides replacements for NVidia headers. But the problem > is in the header shipped with CLang. >
The problem is that you ended up including the headers (that do ship with clang) that were not intended to be used in your case. -nocudainc is there specifically to *not* use those headers. If you use -nocudainc, Clang's cuda-specific wrappers will not be in the header include path and clang will include <new> from whatever standard C++ library you have installed. -- --Artem Belevich
_______________________________________________ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users