Fatal compiler error?


fatal error C1189: #error: STL1001: Unexpected compiler version, expected MSVC 19.29 or newer.


nvcc -Iincludes src\cuda.cu src\main.cpp -o app.exe

cuda.cu contains a simple vector addition function (global) and a wrapper which calls that function.

I wanna call the wrapper function in main.cpp

I understand this might not be a cuda error but rather a MSVC error, how do i fix this ?

Also i hope that this is the right way to keep cuda code and cpp code separate and still be able to call cuda accelerated functions in cpp .