Compiling with cudnn 7, cuda 3

@FaBeyyy Hi,
Compiling with cudnn 7, cuda 3
CUDA 3 was released 8 years ago - you are not mistaken?
What OpenCV version do you use?
Yeah sorry my mistake havent slept all night... so:
OpenCv: 3.4.1
Cuda: 9.1
What i tried: changing the compilation settings from C to C++ which resultet into the C library errors going away but new conversion errors popping up as it is probably not the way to go.

A weird warning that i get is : "'cuda_gridsize' has C-linkage specified, but returns UDT 'dim3' which is incompatible with C"
This is a bug in OpenCV 3.4.1 in the C API: https://github.com/opencv/opencv/issues/10963
Use OpenCV 3.4.0 or earlier.
Worked, thank you so much for the quick help.
tks a lot, i was also met this problem and solve it now by this issue.
Can't fix this problem...... iam using OpenCv 3.4.0

@arshiana Try to use this OpenCV version: https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.3.0/opencv-3.3.0-vc14.exe/download
Most helpful comment
@FaBeyyy Hi,
CUDA 3 was released 8 years ago - you are not mistaken?
What OpenCV version do you use?