I’ve only used that under linux, and this may sound obvious but check that the toolchain is looking for the correct compilers that are installed in your system. Go to toolchain editor and check what’s being used as a c/C++ compiler and also check that the correct PATH environment variables are set up correctly.
Thanks for your help. Seems that I forgot to change the linker to nvcc. That pretty much fixed the issue. Though, now I’m truly stuck because NVIDIA doesn’t support MinGW and I’m using Eclipse. Looks like I’m moving to visual studio of linux.