# OpenCv 4.0.1, Cuda-6.5, G++, CMake , and an error, or 14...

Absolutely NO idea what is wrong here, or how to fix it. Any help would be greatly appreciated.

Software:

uname -ao: Linux tegra-ubuntu 3.10.40-grinch-21.3.4 #1 SMP PREEMPT Fri May 1 10:41:09 UTC 2015 armv7l armv7l armv7l GNU/Linux

g++ --version: g++ (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.4) 4.8.4

OpenCv and OpenCv_Contrib I am attempting to compile: 4.0.1

Cuda Version (a.k.a. nvcc --version): nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2014 NVIDIA Corporation Built on Tue_Feb_17_22:53:16_CST_2015 Cuda compilation tools, release 6.5, V6.5.45

Hardware: Nvidia Jetson TK1 Thats about it...

Heres the terminal from right above the error to the end of make comp...

```
/usr/local/cuda/include/math_functions.h:965:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1184:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1281:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1521:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1559:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1575:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1591:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1645:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1699:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1866:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1921:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1951:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:1981:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:2057:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:2133:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:2209:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:2285:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:2452:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:2469:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:2487:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800
^
/usr/local/cuda/include/math_functions.h:2505:5: warning: "_MSC_VER" is not defined [-Wundef]
#if _MSC_VER < 1800 ...
```