pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/graphics



On Fri, Dec 22, 2023 at 07:35:07AM +0000, Dr. Thomas Orgis wrote:
> Module Name:	pkgsrc
> Committed By:	thor
> Date:		Fri Dec 22 07:35:07 UTC 2023
> 
> Modified Files:
> 	pkgsrc/graphics/opencv: Makefile Makefile.common distinfo
> 	pkgsrc/graphics/opencv-contrib-face: Makefile distinfo
> 	pkgsrc/graphics/opencv/patches: patch-CMakeLists.txt
> Added Files:
> 	pkgsrc/graphics/opencv/patches: patch-cmake_OpenCVFindLAPACK.cmake
> Removed Files:
> 	pkgsrc/graphics/opencv/patches: patch-cmake_OpenCVFindOpenEXR.cmake
> 	    patch-cmake_checks_lapack__check.cpp
> 	    patch-modules_core_src_hal__internal.cpp
> 
> Log Message:
> opencv: version 3.4.17 with proper explicit BLAS (CBLAS + LAPACKE) usage

This breaks the build for me on NetBSD-10.99.10/amd64 with the following error:

=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for opencv-3.4.17.tar.gz
=> Checksum SHA512 OK for opencv-3.4.17.tar.gz
work -> /scratch/graphics/opencv/work
===> Installing dependencies for opencv-3.4.17
==========================================================================
The supported build options for opencv are:

	ffmpeg gtk jasper

The currently selected options are:

	gtk

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.opencv (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
opencv-3.4.17.  Their current value is shown below:

        * JPEG_DEFAULT = libjpeg-turbo
        * PKGSRC_BLAS_TYPES = netlib openblas openblas_pthread openblas_openmp
        * PYTHON_VERSION_DEFAULT = 311

Based on these variables, the following variables have been set:

        * BLAS_INCLUDES = -I/usr/pkg/include/netlib
        * BLAS_LIBS = -lblas
        * BLAS_TYPE = netlib
        * CBLAS_LIBS = -lcblas -lblas
        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = libjpeg-turbo
        * LAPACKE_LIBS = -llapacke -llapack -lblas
        * LAPACK_LIBS = -llapack -lblas
        * PYPACKAGE = python311

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/usr/bin/make clean' after the changes.
==========================================================================
=> Tool dependency glib2-tools-[0-9]*: found glib2-tools-2.78.1
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cmake>=3.18: found cmake-3.28.1
=> Tool dependency gmake>=3.81: found gmake-4.4.1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.0.3
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency xorgproto>=2016.1: found xorgproto-2023.2
=> Build dependency xcb-proto>=1.15.2nb3: found xcb-proto-1.16.0nb1
=> Full dependency lapack>=3.9.0nb1: found lapack-3.11.0
=> Full dependency cblas>=3.9.1nb1: found cblas-3.11.0
=> Full dependency lapacke>=3.9.1nb2: found lapacke-3.11.0
=> Full dependency python311>=3.11.0: found python311-3.11.7
=> Full dependency gtk3+>=3.24.38nb6: found gtk3+-3.24.38nb6
=> Full dependency png>=1.6.0nb1: found png-1.6.40
=> Full dependency tiff>=4.6.0: found tiff-4.6.0nb3
=> Full dependency libjpeg-turbo>=1.1.0: found libjpeg-turbo-3.0.1
=> Full dependency protobuf>=25.0: found protobuf-25.1
=> Full dependency libwebp>=0.6.0: found libwebp-1.3.2nb1
=> Full dependency openexr>=3.2.1: found openexr-3.2.1
=> Full dependency py311-numpy>=1.20.3nb1: found py311-numpy-1.26.2nb1
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Overriding tools for opencv-3.4.17
===> Extracting for opencv-3.4.17
===> Patching for opencv-3.4.17
=> Applying pkgsrc patches for opencv-3.4.17
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-3rdparty_ippicv_ippicv.cmake
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-3rdparty_ippicv_ippicv.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-3rdparty_ippicv_ippicv.cmake,v 1.1 2017/09/04 15:23:49 fhajny Exp $
|
|Do not download at build time.
|
|--- 3rdparty/ippicv/ippicv.cmake.orig	2017-08-03 23:58:23.000000000 +0000
|+++ 3rdparty/ippicv/ippicv.cmake
--------------------------
Patching file 3rdparty/ippicv/ippicv.cmake using Plan A...
Hunk #1 succeeded at 1.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-3rdparty_protobuf_src_google_protobuf_message__lite.cc
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-3rdparty_protobuf_src_google_protobuf_message__lite.cc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-3rdparty_protobuf_src_google_protobuf_message__lite.cc,v 1.1 2017/09/04 15:23:49 fhajny Exp $
|
|Needed for INT_MAX.
|
|--- 3rdparty/protobuf/src/google/protobuf/message_lite.cc.orig	2017-08-03 23:58:23.000000000 +0000
|+++ 3rdparty/protobuf/src/google/protobuf/message_lite.cc
--------------------------
Patching file 3rdparty/protobuf/src/google/protobuf/message_lite.cc using Plan A...
Hunk #1 succeeded at 40 (offset 2 lines).
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-CMakeLists.txt,v 1.10 2023/12/22 07:35:07 thor Exp $
|
|Don't add to CMAKE_LIBRARY_PATH, may cause other versions of packages
|to be found in preference to pkgsrc ones.
|Do not build third party libraries on Darwin.
|
|--- CMakeLists.txt.orig	2021-12-24 16:39:15.000000000 +0000
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 169.
Hunk #2 succeeded at 191.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-apps_visualisation_opencv__visualisation.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-apps_visualisation_opencv__visualisation.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-apps_visualisation_opencv__visualisation.cpp,v 1.1 2020/04/18 22:01:33 joerg Exp $
|
|--- apps/visualisation/opencv_visualisation.cpp.orig	2020-04-18 02:44:25.906562998 +0000
|+++ apps/visualisation/opencv_visualisation.cpp
--------------------------
Patching file apps/visualisation/opencv_visualisation.cpp using Plan A...
Hunk #1 succeeded at 60.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-cmake_OpenCVDetectCXXCompiler.cmake
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-cmake_OpenCVDetectCXXCompiler.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-cmake_OpenCVDetectCXXCompiler.cmake,v 1.2 2020/02/13 09:23:46 adam Exp $
|
|Rely on pkgsrc to set architeture, see CONFIGURE_ENV.
|
|--- cmake/OpenCVDetectCXXCompiler.cmake.orig	2019-12-19 15:16:47.000000000 +0000
|+++ cmake/OpenCVDetectCXXCompiler.cmake
--------------------------
Patching file cmake/OpenCVDetectCXXCompiler.cmake using Plan A...
Hunk #1 succeeded at 84.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-cmake_OpenCVDetectPython.cmake
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-cmake_OpenCVDetectPython.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-cmake_OpenCVDetectPython.cmake,v 1.1 2019/12/16 08:24:39 adam Exp $
|
|Do not look for Python 2.x.
|
|--- cmake/OpenCVDetectPython.cmake.orig	2019-12-16 06:04:25.000000000 +0000
|+++ cmake/OpenCVDetectPython.cmake
--------------------------
Patching file cmake/OpenCVDetectPython.cmake using Plan A...
Hunk #1 succeeded at 268.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-cmake_OpenCVFindLAPACK.cmake
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-cmake_OpenCVFindLAPACK.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-cmake_OpenCVFindLAPACK.cmake,v 1.1 2023/12/22 07:35:07 thor Exp $
|
|--- cmake/OpenCVFindLAPACK.cmake.orig	2021-12-24 16:39:15.000000000 +0000
|+++ cmake/OpenCVFindLAPACK.cmake
--------------------------
Patching file cmake/OpenCVFindLAPACK.cmake using Plan A...
Hunk #1 succeeded at 84.
Hunk #2 succeeded at 98.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_include_opencv2_core_bindings__utils.hpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_include_opencv2_core_bindings__utils.hpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_core_include_opencv2_core_bindings__utils.hpp,v 1.2 2021/10/06 21:10:24 adam Exp $
|
|--- modules/core/include/opencv2/core/bindings_utils.hpp.orig	2021-07-04 21:10:13.000000000 +0000
|+++ modules/core/include/opencv2/core/bindings_utils.hpp
--------------------------
Patching file modules/core/include/opencv2/core/bindings_utils.hpp using Plan A...
Hunk #1 succeeded at 5.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_include_opencv2_core_opencl_opencl__info.hpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_include_opencv2_core_opencl_opencl__info.hpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_core_include_opencv2_core_opencl_opencl__info.hpp,v 1.1 2020/04/18 22:01:33 joerg Exp $
|
|--- modules/core/include/opencv2/core/opencl/opencl_info.hpp.orig	2020-04-18 02:39:48.224336800 +0000
|+++ modules/core/include/opencv2/core/opencl/opencl_info.hpp
--------------------------
Patching file modules/core/include/opencv2/core/opencl/opencl_info.hpp using Plan A...
Hunk #1 succeeded at 3.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_include_opencv2_core_types_c.h
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_include_opencv2_core_types_c.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_core_include_opencv2_core_types_c.h,v 1.2 2015/10/08 17:45:59 fhajny Exp $
|
|Define 'depth' as unsigned int, or IPL_DEPTH_SIGN=0x8000000 won't fit in int.
|
|--- modules/core/include/opencv2/core/types_c.h.orig	2015-06-03 17:21:34.000000000 +0000
|+++ modules/core/include/opencv2/core/types_c.h
--------------------------
Patching file modules/core/include/opencv2/core/types_c.h using Plan A...
Hunk #1 succeeded at 330 (offset 27 lines).
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_src_check.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_src_check.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_core_src_check.cpp,v 1.1 2020/04/18 22:01:33 joerg Exp $
|
|--- modules/core/src/check.cpp.orig	2020-04-18 02:32:42.393303493 +0000
|+++ modules/core/src/check.cpp
--------------------------
Patching file modules/core/src/check.cpp using Plan A...
Hunk #1 succeeded at 3.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_src_downhill__simplex.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_src_downhill__simplex.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_core_src_downhill__simplex.cpp,v 1.1 2015/10/08 17:45:59 fhajny Exp $
|
|Avoid DS conflict on SunOS.
|
|--- modules/core/src/downhill_simplex.cpp.orig	2015-06-03 17:21:34.000000000 +0000
|+++ modules/core/src/downhill_simplex.cpp
--------------------------
Patching file modules/core/src/downhill_simplex.cpp using Plan A...
Hunk #1 succeeded at 450.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_src_rand.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_src_rand.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_core_src_rand.cpp,v 1.1 2020/09/09 11:50:50 nia Exp $
|
|Include arm_neon.h before attempting to use intrinsics.
|
|This is seemingly fixed in newer releases.
|
|--- modules/core/src/rand.cpp.orig	2019-12-19 15:16:47.000000000 +0000
|+++ modules/core/src/rand.cpp
--------------------------
Patching file modules/core/src/rand.cpp using Plan A...
Hunk #1 succeeded at 60.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_src_system.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_core_src_system.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_core_src_system.cpp,v 1.1 2013/04/29 21:31:12 joerg Exp $
|
|--- modules/core/src/system.cpp.orig	2013-04-28 15:15:06.000000000 +0000
|+++ modules/core/src/system.cpp
--------------------------
Patching file modules/core/src/system.cpp using Plan A...
Hunk #1 succeeded at 236 (offset 157 lines).
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_dnn_src_layers_accum__layer.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_dnn_src_layers_accum__layer.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_dnn_src_layers_accum__layer.cpp,v 1.1 2021/10/21 16:25:07 jperkin Exp $
|
|Explicitly use std::ceil.
|
|--- modules/dnn/src/layers/accum_layer.cpp.orig	2021-10-08 18:31:56.000000000 +0000
|+++ modules/dnn/src/layers/accum_layer.cpp
--------------------------
Patching file modules/dnn/src/layers/accum_layer.cpp using Plan A...
Hunk #1 succeeded at 8.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_dnn_src_tensorflow_tf__importer.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_dnn_src_tensorflow_tf__importer.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_dnn_src_tensorflow_tf__importer.cpp,v 1.1 2020/04/18 22:01:34 joerg Exp $
|
|--- modules/dnn/src/tensorflow/tf_importer.cpp.orig	2020-04-18 02:43:16.265690888 +0000
|+++ modules/dnn/src/tensorflow/tf_importer.cpp
--------------------------
Patching file modules/dnn/src/tensorflow/tf_importer.cpp using Plan A...
Hunk #1 succeeded at 20 (offset 6 lines).
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_dnn_src_torch_torch__importer.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_dnn_src_torch_torch__importer.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_dnn_src_torch_torch__importer.cpp,v 1.1 2020/04/18 22:01:34 joerg Exp $
|
|--- modules/dnn/src/torch/torch_importer.cpp.orig	2020-04-18 02:45:10.074752904 +0000
|+++ modules/dnn/src/torch/torch_importer.cpp
--------------------------
Patching file modules/dnn/src/torch/torch_importer.cpp using Plan A...
Hunk #1 succeeded at 46.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_dnn_test__precomp.hpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_dnn_test__precomp.hpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_dnn_test__precomp.hpp,v 1.1 2019/04/29 03:23:53 mef Exp $
|
|adhoc patch to build 3.4.6
|
|[ 30%] Built target opencv_core
|/export/WRKOBJDIR/graphics/opencv/work/opencv-3.4.6/build/modules/dnn/test_precomp.hpp:50:10: fatal error: test/test_common.hpp: No such file or directory
| #include "test/test_common.hpp"
|          ^~~~~~~~~~~~~~~~~~~~~~
|compilation terminated.
|
|--- build/modules/dnn/test_precomp.hpp.orig	2019-04-29 10:35:50.011315095 +0900
|+++ modules/dnn/test/test_precomp.hpp	2019-04-29 11:11:41.277591395 +0900
--------------------------
Patching file modules/dnn/test/test_precomp.hpp using Plan A...
Hunk #1 succeeded at 47.
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_flann_include_opencv2_flann_defines.h
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_flann_include_opencv2_flann_defines.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_flann_include_opencv2_flann_defines.h,v 1.1 2013/06/12 10:13:58 jperkin Exp $
|
|Avoid CS conflict on SunOS.
|
|--- modules/flann/include/opencv2/flann/defines.h.orig	2012-09-27 22:55:06.000000000 +0000
|+++ modules/flann/include/opencv2/flann/defines.h
--------------------------
Patching file modules/flann/include/opencv2/flann/defines.h using Plan A...
Hunk #1 succeeded at 60 (offset -11 lines).
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_imgcodecs_src_grfmt__exr.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_imgcodecs_src_grfmt__exr.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_imgcodecs_src_grfmt__exr.cpp,v 1.1 2021/07/08 21:27:39 markd Exp $
|
|openexr3
|
|--- modules/imgcodecs/src/grfmt_exr.cpp.orig	2019-12-19 15:16:47.000000000 +0000
|+++ modules/imgcodecs/src/grfmt_exr.cpp
--------------------------
Patching file modules/imgcodecs/src/grfmt_exr.cpp using Plan A...
Hunk #1 succeeded at 59 (offset 3 lines).
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_imgproc_src_resize.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_imgproc_src_resize.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_imgproc_src_resize.cpp,v 1.1 2020/08/08 22:40:59 joerg Exp $
|
|On Illumos int8_t != ET, so be explicit about the cast to be used here.
|
|--- modules/imgproc/src/resize.cpp.orig	2020-08-08 22:04:15.259991576 +0000
|+++ modules/imgproc/src/resize.cpp
--------------------------
Patching file modules/imgproc/src/resize.cpp using Plan A...
Hunk #1 succeeded at 653 (offset 1 line).
Hunk #2 succeeded at 685 (offset 1 line).
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_ts_src_ts.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_ts_src_ts.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_ts_src_ts.cpp,v 1.3 2015/10/08 17:45:59 fhajny Exp $
|
|Avoid std::foo conflict.
|
|--- modules/ts/src/ts.cpp.orig	2015-06-03 17:21:34.000000000 +0000
|+++ modules/ts/src/ts.cpp
--------------------------
Patching file modules/ts/src/ts.cpp using Plan A...
Hunk #1 succeeded at 319 (offset 84 lines).
Hunk #2 succeeded at 573 (offset 15 lines).
Hunk #3 succeeded at 700 (offset 87 lines).
done
=> Verifying /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_videoio_src_cap__v4l.cpp
=> Applying pkgsrc patch /usr/pkgsrc/graphics/opencv/../../graphics/opencv/patches/patch-modules_videoio_src_cap__v4l.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-modules_videoio_src_cap__v4l.cpp,v 1.9 2021/10/16 07:16:29 adam Exp $
|
|Conditionalize settings not available in NetBSD's v4l2 emulation.
|Avoid non-standard integer types.
|
|--- modules/videoio/src/cap_v4l.cpp.orig	2021-10-08 18:31:56.000000000 +0000
|+++ modules/videoio/src/cap_v4l.cpp
--------------------------
Patching file modules/videoio/src/cap_v4l.cpp using Plan A...
Hunk #1 succeeded at 215.
Hunk #2 succeeded at 243 (offset -1 lines).
Hunk #3 succeeded at 568 (offset -1 lines).
Hunk #4 succeeded at 635 (offset -1 lines).
Hunk #5 succeeded at 676 (offset -1 lines).
Hunk #6 succeeded at 1555 (offset -1 lines).
Hunk #7 succeeded at 1600 (offset -1 lines).
Hunk #8 succeeded at 1622 (offset -1 lines).
Hunk #9 succeeded at 1735 (offset -1 lines).
Hunk #10 succeeded at 1753 (offset -1 lines).
Hunk #11 succeeded at 1767 (offset -1 lines).
Hunk #12 succeeded at 1781 (offset -1 lines).
done
===> Creating toolchain wrappers for opencv-3.4.17
===> Configuring for opencv-3.4.17
/bin/mkdir -p /scratch/graphics/opencv/work/opencv-3.4.17/build
=> Generating pkg-config file for builtin expat package.
=> Generating pkg-config files for builtin xz package.
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
INFO: [subst.mk:cmake] Nothing changed in "CMakeLists.txt".
=> Fixing locale directory references.
INFO: [subst.mk:pkglocaledir] Nothing changed in "samples/cpp/example_cmake/Makefile".
=> Checking for portability problems in extracted files
CMake Deprecation Warning at CMakeLists.txt:29 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- 'Release' build type is used by default. Use CMAKE_BUILD_TYPE to specify build type (Release or Debug)
-- The CXX compiler identification is GNU 10.5.0
-- The C compiler identification is GNU 10.5.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /scratch/graphics/opencv/work/.cwrapper/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /scratch/graphics/opencv/work/.cwrapper/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- OpenCV: system-specific configuration file is not found: 'NetBSD'
-- Detected processor: x86_64
-- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)
-- Performing Test HAVE_CXX11 - Success
CMake Warning (dev) at cmake/OpenCVUtils.cmake:144 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  cmake/OpenCVDetectPython.cmake:64 (find_host_package)
  cmake/OpenCVDetectPython.cmake:273 (find_python)
  CMakeLists.txt:585 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/pkg/bin/python3.11 (found suitable version "3.11.7", minimum required is "3.2") 
CMake Warning (dev) at cmake/OpenCVDetectPython.cmake:140 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  cmake/OpenCVDetectPython.cmake:273 (find_python)
  CMakeLists.txt:585 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonLibs: /usr/pkg/lib/libpython3.11.so (found suitable exact version "3.11.7") 
<string>:1: DeprecationWarning: 

  `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
  of the deprecation of `distutils` itself. It will be removed for
  Python >= 3.12. For older Python versions it will remain present.
  It is recommended to use `setuptools < 60.0` for those Python versions.
  For more details, see:
    https://numpy.org/devdocs/reference/distutils_status_migration.html 


-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_C_WERROR_RETURN_TYPE
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_WERROR_ADDRESS
-- Performing Test HAVE_CXX_WERROR_ADDRESS - Success
-- Performing Test HAVE_C_WERROR_ADDRESS
-- Performing Test HAVE_C_WERROR_ADDRESS - Success
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Success
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Success
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_C_WMISSING_DECLARATIONS
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
-- Performing Test HAVE_C_WMISSING_PROTOTYPES
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
-- Performing Test HAVE_CXX_WUNDEF
-- Performing Test HAVE_CXX_WUNDEF - Success
-- Performing Test HAVE_C_WUNDEF
-- Performing Test HAVE_C_WUNDEF - Success
-- Performing Test HAVE_CXX_WINIT_SELF
-- Performing Test HAVE_CXX_WINIT_SELF - Success
-- Performing Test HAVE_C_WINIT_SELF
-- Performing Test HAVE_C_WINIT_SELF - Success
-- Performing Test HAVE_CXX_WPOINTER_ARITH
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
-- Performing Test HAVE_C_WPOINTER_ARITH
-- Performing Test HAVE_C_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_WSHADOW
-- Performing Test HAVE_CXX_WSHADOW - Success
-- Performing Test HAVE_C_WSHADOW
-- Performing Test HAVE_C_WSHADOW - Success
-- Performing Test HAVE_CXX_WSIGN_PROMO
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Failed
-- Performing Test HAVE_CXX_WUNINITIALIZED
-- Performing Test HAVE_CXX_WUNINITIALIZED - Success
-- Performing Test HAVE_C_WUNINITIALIZED
-- Performing Test HAVE_C_WUNINITIALIZED - Success
-- Performing Test HAVE_CXX_WSUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_WSUGGEST_OVERRIDE - Success
-- Performing Test HAVE_C_WSUGGEST_OVERRIDE
-- Performing Test HAVE_C_WSUGGEST_OVERRIDE - Failed
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Performing Test HAVE_CXX_WNO_COMMENT
-- Performing Test HAVE_CXX_WNO_COMMENT - Success
-- Performing Test HAVE_C_WNO_COMMENT
-- Performing Test HAVE_C_WNO_COMMENT - Success
-- Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3
-- Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3 - Success
-- Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3
-- Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3 - Success
-- Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW
-- Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW - Success
-- Performing Test HAVE_C_WNO_STRICT_OVERFLOW
-- Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
-- Performing Test HAVE_CXX_WNO_LONG_LONG
-- Performing Test HAVE_CXX_WNO_LONG_LONG - Success
-- Performing Test HAVE_C_WNO_LONG_LONG
-- Performing Test HAVE_C_WNO_LONG_LONG - Success
-- Performing Test HAVE_CXX_PTHREAD
-- Performing Test HAVE_CXX_PTHREAD - Success
-- Performing Test HAVE_C_PTHREAD
-- Performing Test HAVE_C_PTHREAD - Success
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_C_FFUNCTION_SECTIONS
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_CXX_FDATA_SECTIONS
-- Performing Test HAVE_CXX_FDATA_SECTIONS - Success
-- Performing Test HAVE_C_FDATA_SECTIONS
-- Performing Test HAVE_C_FDATA_SECTIONS - Success
-- Performing Test HAVE_CXX_MSSE (check file: cmake/checks/cpu_sse.cpp)
-- Performing Test HAVE_CXX_MSSE - Success
-- Performing Test HAVE_CXX_MSSE2 (check file: cmake/checks/cpu_sse2.cpp)
-- Performing Test HAVE_CXX_MSSE2 - Success
-- Performing Test HAVE_CXX_MSSE3 (check file: cmake/checks/cpu_sse3.cpp)
-- Performing Test HAVE_CXX_MSSE3 - Success
-- Performing Test HAVE_CXX_MSSSE3 (check file: cmake/checks/cpu_ssse3.cpp)
-- Performing Test HAVE_CXX_MSSSE3 - Success
-- Performing Test HAVE_CXX_MSSE4_1 (check file: cmake/checks/cpu_sse41.cpp)
-- Performing Test HAVE_CXX_MSSE4_1 - Success
-- Performing Test HAVE_CXX_MPOPCNT (check file: cmake/checks/cpu_popcnt.cpp)
-- Performing Test HAVE_CXX_MPOPCNT - Success
-- Performing Test HAVE_CXX_MSSE4_2 (check file: cmake/checks/cpu_sse42.cpp)
-- Performing Test HAVE_CXX_MSSE4_2 - Success
-- Performing Test HAVE_CXX_MF16C (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CXX_MF16C - Success
-- Performing Test HAVE_CXX_MFMA
-- Performing Test HAVE_CXX_MFMA - Success
-- Performing Test HAVE_CXX_MAVX (check file: cmake/checks/cpu_avx.cpp)
-- Performing Test HAVE_CXX_MAVX - Success
-- Performing Test HAVE_CXX_MAVX2 (check file: cmake/checks/cpu_avx2.cpp)
-- Performing Test HAVE_CXX_MAVX2 - Success
-- Performing Test HAVE_CXX_MAVX512F (check file: cmake/checks/cpu_avx512.cpp)
-- Performing Test HAVE_CXX_MAVX512F - Success
-- Performing Test HAVE_CXX_MAVX512F_MAVX512CD (check file: cmake/checks/cpu_avx512common.cpp)
-- Performing Test HAVE_CXX_MAVX512F_MAVX512CD - Success
-- Performing Test HAVE_CXX_MAVX512F_MAVX512CD_MAVX512VL_MAVX512BW_MAVX512DQ (check file: cmake/checks/cpu_avx512skx.cpp)
-- Performing Test HAVE_CXX_MAVX512F_MAVX512CD_MAVX512VL_MAVX512BW_MAVX512DQ - Success
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX - Success
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed
-- Performing Test HAVE_LINK_AS_NEEDED
-- Performing Test HAVE_LINK_AS_NEEDED - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memalign
-- Looking for memalign - not found
CMake Warning (dev) at cmake/OpenCVFindLibsGrfmt.cmake:14 (find_package):
  Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
  Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  CMake variable ZLIB_ROOT is set to:

    /usr

  For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
  CMakeLists.txt:673 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found ZLIB: /usr/lib/libz.so (found suitable version "1.2.13", minimum required is "1.2.3")  
-- Found JPEG: /usr/pkg/lib/libjpeg.so (found version "80") 
-- Found TIFF: /usr/pkg/lib/libtiff.so (found version "4.6.0")  
-- Found WebP: /usr/pkg/lib/libwebp.so  
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.13")  
-- Found PNG: /usr/pkg/lib/libpng16.so (found version "1.6.40") 
-- Looking for /usr/pkg/include/libpng/png.h
-- Looking for /usr/pkg/include/libpng/png.h - not found
-- Checking for module 'gtk+-3.0'
--   Found gtk+-3.0, version 3.24.38
-- Checking for module 'gthread-2.0'
--   Found gthread-2.0, version 2.78.1
-- Checking for modules 'gstreamer-base-1.0;gstreamer-video-1.0;gstreamer-app-1.0;gstreamer-riff-1.0;gstreamer-pbutils-1.0'
--   Package 'gstreamer-base-1.0', required by 'virtual:world', not found
--   Package 'gstreamer-video-1.0', required by 'virtual:world', not found
--   Package 'gstreamer-app-1.0', required by 'virtual:world', not found
--   Package 'gstreamer-riff-1.0', required by 'virtual:world', not found
--   Package 'gstreamer-pbutils-1.0', required by 'virtual:world', not found
-- Checking for modules 'gstreamer-base-0.10;gstreamer-video-0.10;gstreamer-app-0.10;gstreamer-riff-0.10;gstreamer-pbutils-0.10'
--   Package 'gstreamer-base-0.10', required by 'virtual:world', not found
--   Package 'gstreamer-video-0.10', required by 'virtual:world', not found
--   Package 'gstreamer-app-0.10', required by 'virtual:world', not found
--   Package 'gstreamer-riff-0.10', required by 'virtual:world', not found
--   Package 'gstreamer-pbutils-0.10', required by 'virtual:world', not found
-- Checking for module 'libdc1394-2'
--   Package 'libdc1394-2', required by 'virtual:world', not found
-- Checking for module 'libdc1394'
--   Package 'libdc1394', required by 'virtual:world', not found
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - not found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - found
-- Found PkgConfig: /scratch/graphics/opencv/work/.tools/bin/pkg-config (found version "2.0.3") 
-- Checking for one of the modules 'blas;blas'
-- Checking for one of the modules 'lapack;lapack'
-- Checking for one of the modules 'cblas;cblas'
-- Checking for one of the modules 'lapacke;lapacke'
-- LAPACK(pkg): LAPACK_LIBRARIES: cblas;lapacke;blas;lapack
CMake Error at cmake/OpenCVFindLAPACK.cmake:87 (message):
  LAPACK: check build log:

  Change Dir:
  '/scratch/graphics/opencv/work/opencv-3.4.17/build/CMakeFiles/CMakeTmp'



  Run Build Command(s): /usr/pkg/bin/cmake -E env VERBOSE=1
  /scratch/graphics/opencv/work/.tools/bin/gmake -f Makefile cmTC_ff3b4/fast

  make -f CMakeFiles/cmTC_ff3b4.dir/build.make
  CMakeFiles/cmTC_ff3b4.dir/build

  make[1]: Entering directory
  '/scratch/graphics/opencv/work/opencv-3.4.17/build/CMakeFiles/CMakeTmp'

  Building CXX object CMakeFiles/cmTC_ff3b4.dir/lapack_check.cpp.o

  /scratch/graphics/opencv/work/.cwrapper/bin/c++ -I/usr/pkg/include/netlib
  -I/scratch/graphics/opencv/work/opencv-3.4.17/build -O2 -g
  -fstack-clash-protection -I/usr/pkg/include -I/usr/include
  -I/usr/pkg/include/python3.11 -I/usr/pkg/include/glib-2.0
  -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include
  -I/usr/pkg/include/freetype2 -I/usr/pkg/include/harfbuzz
  -I/usr/pkg/include/libdrm -fsigned-char -W -Wall -Werror=return-type
  -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat
  -Werror=format-security -Wmissing-declarations -Wundef -Winit-self
  -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override
  -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3
  -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread
  -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2
  -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -DNDEBUG
  -fPIE -o CMakeFiles/cmTC_ff3b4.dir/lapack_check.cpp.o -c
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp

  In file included from /usr/include/g++/bits/stringfwd.h:40,

                   from /usr/include/g++/iosfwd:39,
                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/memoryfwd.h:63:3: error: template with C linkage

     63 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stringfwd.h:40,

                   from /usr/include/g++/iosfwd:39,
                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/memoryfwd.h:66:3: error: template specialization with
  C linkage

     66 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stringfwd.h:40,

                   from /usr/include/g++/iosfwd:39,
                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/memoryfwd.h:71:3: error: template with C linkage

     71 |   template<typename, typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stringfwd.h:40,

                   from /usr/include/g++/iosfwd:39,
                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/memoryfwd.h:74:3: error: template with C linkage

     74 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/iosfwd:39,

                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stringfwd.h:52:3: error: template with C linkage

     52 |   template<class _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/iosfwd:39,

                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stringfwd.h:55:3: error: template specialization with
  C linkage

     55 |   template<> struct char_traits<char>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/iosfwd:39,

                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stringfwd.h:58:3: error: template specialization with
  C linkage

     58 |   template<> struct char_traits<wchar_t>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/iosfwd:39,

                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stringfwd.h:66:3: error: template specialization with
  C linkage

     66 |   template<> struct char_traits<char16_t>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/iosfwd:39,

                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stringfwd.h:67:3: error: template specialization with
  C linkage

     67 |   template<> struct char_traits<char32_t>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/iosfwd:39,

                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stringfwd.h:72:3: error: template with C linkage

     72 |   template<typename _CharT, typename _Traits = char_traits<_CharT>,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/iosfwd:40,

                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/postypes.h:111:3: error: template with C linkage

    111 |   template<typename _StateT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/iosfwd:40,

                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/postypes.h:220:3: error: template with C linkage

    220 |   template<typename _StateT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/iosfwd:40,

                   from /usr/include/g++/ios:38,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/postypes.h:225:3: error: template with C linkage

    225 |   template<typename _StateT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:76:3: error: template with C linkage

     76 |   template<typename _CharT, typename _Traits = char_traits<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:79:3: error: template with C linkage

     79 |   template<typename _CharT, typename _Traits = char_traits<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:82:3: error: template with C linkage

     82 |   template<typename _CharT, typename _Traits = char_traits<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:85:3: error: template with C linkage

     85 |   template<typename _CharT, typename _Traits = char_traits<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:88:3: error: template with C linkage

     88 |   template<typename _CharT, typename _Traits = char_traits<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:94:3: error: template with C linkage

     94 |   template<typename _CharT, typename _Traits = char_traits<_CharT>,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:98:3: error: template with C linkage

     98 |   template<typename _CharT, typename _Traits = char_traits<_CharT>,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:102:3: error: template with C linkage

    102 |   template<typename _CharT, typename _Traits = char_traits<_CharT>,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:106:3: error: template with C linkage

    106 |   template<typename _CharT, typename _Traits = char_traits<_CharT>,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:112:3: error: template with C linkage

    112 |   template<typename _CharT, typename _Traits = char_traits<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:115:3: error: template with C linkage

    115 |   template<typename _CharT, typename _Traits = char_traits<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:118:3: error: template with C linkage

    118 |   template<typename _CharT, typename _Traits = char_traits<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:121:3: error: template with C linkage

    121 |   template<typename _CharT, typename _Traits = char_traits<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:124:3: error: template with C linkage

    124 |   template<typename _CharT, typename _Traits = char_traits<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:38,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/iosfwd:127:3: error: template with C linkage

    127 |   template<typename _CharT, typename _Traits = char_traits<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/exception_ptr.h:43,

                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/move.h:47:3: error: template with C linkage

     47 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:56:3: error: template with C linkage

     56 |   template<typename _Tp, _Tp __v>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:71:3: error: template with C linkage

     71 |   template<typename _Tp, _Tp __v>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:80:3: error: template with C linkage

     80 |   template<bool __v>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:91:3: error: template with C linkage

     91 |   template<bool, typename, typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:94:3: error: template with C linkage

     94 |   template <typename _Type>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:98:3: error: template with C linkage

     98 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:101:3: error: template with C linkage

    101 |   template<typename...>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:104:3: error: template specialization with C
  linkage

    104 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:109:3: error: template with C linkage

    109 |   template<typename _B1>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:114:3: error: template with C linkage

    114 |   template<typename _B1, typename _B2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:119:3: error: template with C linkage

    119 |   template<typename _B1, typename _B2, typename _B3, typename... _Bn>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:124:3: error: template with C linkage

    124 |   template<typename...>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:127:3: error: template specialization with C
  linkage

    127 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:132:3: error: template with C linkage

    132 |   template<typename _B1>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:137:3: error: template with C linkage

    137 |   template<typename _B1, typename _B2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:142:3: error: template with C linkage

    142 |   template<typename _B1, typename _B2, typename _B3, typename... _Bn>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:147:3: error: template with C linkage

    147 |   template<typename _Pp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:188:3: error: template with C linkage

    188 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:190:3: error: template with C linkage

    190 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:192:3: error: template with C linkage

    192 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:194:3: error: template with C linkage

    194 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:200:3: error: template with C linkage

    200 |   template <typename _Tp, size_t = sizeof(_Tp)>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:204:3: error: template with C linkage

    204 |   template <typename _TypeIdentity,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:219:3: error: template with C linkage

    219 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:226:3: error: template with C linkage

    226 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:230:3: error: template with C linkage

    230 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:233:3: error: template with C linkage

    233 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:238:3: error: template with C linkage

    238 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:242:3: error: template specialization with C
  linkage

    242 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:247:3: error: template with C linkage

    247 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:252:3: error: template with C linkage

    252 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:256:3: error: template specialization with C
  linkage

    256 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:260:3: error: template specialization with C
  linkage

    260 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:264:3: error: template specialization with C
  linkage

    264 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:268:3: error: template specialization with C
  linkage

    268 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:273:3: error: template specialization with C
  linkage

    273 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:284:3: error: template specialization with C
  linkage

    284 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:288:3: error: template specialization with C
  linkage

    288 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:292:3: error: template specialization with C
  linkage

    292 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:296:3: error: template specialization with C
  linkage

    296 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:300:3: error: template specialization with C
  linkage

    300 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:304:3: error: template specialization with C
  linkage

    304 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:308:3: error: template specialization with C
  linkage

    308 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:312:3: error: template specialization with C
  linkage

    312 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:316:3: error: template specialization with C
  linkage

    316 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:320:3: error: template specialization with C
  linkage

    320 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:327:3: error: template specialization with C
  linkage

    327 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:331:3: error: template specialization with C
  linkage

    331 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:364:3: error: template with C linkage

    364 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:369:3: error: template with C linkage

    369 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:373:3: error: template specialization with C
  linkage

    373 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:377:3: error: template specialization with C
  linkage

    377 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:381:3: error: template specialization with C
  linkage

    381 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:386:3: error: template specialization with C
  linkage

    386 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:392:3: error: template with C linkage

    392 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:398:3: error: template with C linkage

    398 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:402:3: error: template with C linkage

    402 |   template<typename _Tp, std::size_t _Size>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:406:3: error: template with C linkage

    406 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:410:3: error: template with C linkage

    410 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:414:3: error: template with C linkage

    414 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:419:3: error: template with C linkage

    419 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:425:3: error: template with C linkage

    425 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:429:3: error: template with C linkage

    429 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:434:3: error: template with C linkage

    434 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:438:3: error: template with C linkage

    438 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:442:3: error: template with C linkage

    442 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:446:3: error: template with C linkage

    446 |   template<typename _Tp, typename _Cp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:451:3: error: template with C linkage

    451 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:456:3: error: template with C linkage

    456 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:460:3: error: template with C linkage

    460 |   template<typename _Tp, typename _Cp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:465:3: error: template with C linkage

    465 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:471:3: error: template with C linkage

    471 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:477:3: error: template with C linkage

    477 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:483:3: error: template with C linkage

    483 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:489:3: error: template with C linkage

    489 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:493:3: error: template with C linkage

    493 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:497:3: error: template with C linkage

    497 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:503:3: error: template with C linkage

    503 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:507:3: error: template specialization with C
  linkage

    507 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:512:3: error: template with C linkage

    512 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:518:3: error: template with C linkage

    518 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:526:3: error: template with C linkage

    526 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:533:3: error: template with C linkage

    533 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:539:3: error: template with C linkage

    539 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:546:3: error: template with C linkage

    546 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:552:3: error: template with C linkage

    552 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:556:3: error: template with C linkage

    556 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:563:3: error: template with C linkage

    563 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:567:3: error: template with C linkage

    567 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:571:3: error: template with C linkage

    571 |   template<typename _Tp, typename _Cp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:576:3: error: template with C linkage

    576 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:581:3: error: template with C linkage

    581 |   template<typename, typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:584:3: error: template with C linkage

    584 |   template<typename _Tp, typename... _Types>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:588:3: error: template with C linkage

    588 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:607:3: error: template with C linkage

    607 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:626:3: error: template with C linkage

    626 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:631:3: error: template with C linkage

    631 |   template<typename...> using __void_t = void;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:635:3: error: template with C linkage

    635 |   template<typename _Tp, typename = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:640:3: error: template with C linkage

    640 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:648:3: error: template with C linkage

    648 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:652:3: error: template with C linkage

    652 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:657:3: error: template with C linkage

    657 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:661:3: error: template with C linkage

    661 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:666:3: error: template with C linkage

    666 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:675:3: error: template with C linkage

    675 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:684:3: error: template with C linkage

    684 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:694:3: error: template with C linkage

    694 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:705:3: error: template with C linkage

    705 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:714:3: error: template with C linkage

    714 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:720:3: error: template with C linkage

    720 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:728:3: error: template with C linkage

    728 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:735:3: error: template with C linkage

    735 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:740:3: error: template with C linkage

    740 |   template<typename _Tp,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:745:3: error: template with C linkage

    745 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:751:3: error: template with C linkage

    751 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:757:3: error: template with C linkage

    757 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:770:3: error: template with C linkage

    770 |   template<typename _Tp, typename _Up = _Tp&&>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:774:3: error: template with C linkage

    774 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:778:3: error: template with C linkage

    778 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:781:3: error: template with C linkage

    781 |   template<typename, unsigned = 0>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:784:3: error: template with C linkage

    784 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:787:3: error: template with C linkage

    787 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:792:3: error: template with C linkage

    792 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:804:5: error: template with C linkage

    804 |     template<typename _Tp, typename = decltype(declval<_Tp&>().~_Tp())>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:807:5: error: template with C linkage

    807 |     template<typename>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:811:3: error: template with C linkage

    811 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:818:3: error: template with C linkage

    818 |   template<typename _Tp,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:825:3: error: template with C linkage

    825 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:831:3: error: template with C linkage

    831 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:835:3: error: template with C linkage

    835 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:840:3: error: template with C linkage

    840 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:854:5: error: template with C linkage

    854 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:858:5: error: template with C linkage

    858 |     template<typename>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:862:3: error: template with C linkage

    862 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:869:3: error: template with C linkage

    869 |   template<typename _Tp,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:876:3: error: template with C linkage

    876 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:882:3: error: template with C linkage

    882 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:886:3: error: template with C linkage

    886 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:891:3: error: template with C linkage

    891 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:899:3: error: template with C linkage

    899 |   template<typename _Tp, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:905:3: error: template with C linkage

    905 |   template<typename _Tp, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:914:3: error: template with C linkage

    914 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:922:3: error: template with C linkage

    922 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:925:3: error: template with C linkage

    925 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:929:3: error: template with C linkage

    929 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:935:3: error: template with C linkage

    935 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:943:3: error: template with C linkage

    943 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:946:3: error: template with C linkage

    946 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:950:3: error: template with C linkage

    950 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:956:3: error: template with C linkage

    956 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:964:3: error: template with C linkage

    964 |   template<bool, typename _Tp, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:969:3: error: template with C linkage

    969 |   template<typename _Tp, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:974:3: error: template with C linkage

    974 |   template<typename _Tp, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:979:3: error: template with C linkage

    979 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:984:3: error: template with C linkage

    984 |   template<typename _Tp, size_t _Num>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1001:3: error: template with C linkage

   1001 |   template<typename _Tp, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1007:3: error: template with C linkage

   1007 |   template<typename _Tp, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1016:3: error: template with C linkage

   1016 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1025:3: error: template with C linkage

   1025 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1028:3: error: template with C linkage

   1028 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1032:3: error: template with C linkage

   1032 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1038:3: error: template with C linkage

   1038 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1046:3: error: template with C linkage

   1046 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1049:3: error: template with C linkage

   1049 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1053:3: error: template with C linkage

   1053 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1059:3: error: template with C linkage

   1059 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1068:3: error: template with C linkage

   1068 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1076:3: error: template with C linkage

   1076 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1079:3: error: template with C linkage

   1079 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1083:3: error: template with C linkage

   1083 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1089:3: error: template with C linkage

   1089 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1097:3: error: template with C linkage

   1097 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1100:3: error: template with C linkage

   1100 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1104:3: error: template with C linkage

   1104 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1110:3: error: template with C linkage

   1110 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1118:3: error: template with C linkage

   1118 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1123:3: error: template with C linkage

   1123 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1130:3: error: template with C linkage

   1130 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1138:3: error: template with C linkage

   1138 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1141:3: error: template with C linkage

   1141 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1145:3: error: template with C linkage

   1145 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1151:3: error: template with C linkage

   1151 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1159:3: error: template with C linkage

   1159 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1162:3: error: template with C linkage

   1162 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1166:3: error: template with C linkage

   1166 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1172:3: error: template with C linkage

   1172 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1181:3: error: template with C linkage

   1181 |   template<typename _Tp, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1190:3: error: template with C linkage

   1190 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1200:5: error: template with C linkage

   1200 |     template <typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1203:5: error: template with C linkage

   1203 |     template <typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1210:3: error: template with C linkage

   1210 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1217:3: error: template with C linkage

   1217 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1222:3: error: template with C linkage

   1222 |   template <typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1228:3: error: template with C linkage

   1228 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1231:3: error: template with C linkage

   1231 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1235:3: error: template with C linkage

   1235 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1243:3: error: template with C linkage

   1243 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1251:3: error: template with C linkage

   1251 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1254:3: error: template with C linkage

   1254 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1258:3: error: template with C linkage

   1258 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1266:3: error: template with C linkage

   1266 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1275:3: error: template with C linkage

   1275 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1283:3: error: template with C linkage

   1283 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1286:3: error: template with C linkage

   1286 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1290:3: error: template with C linkage

   1290 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1296:3: error: template with C linkage

   1296 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1304:3: error: template with C linkage

   1304 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1307:3: error: template with C linkage

   1307 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1311:3: error: template with C linkage

   1311 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1317:3: error: template with C linkage

   1317 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1326:3: error: template with C linkage

   1326 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1337:3: error: template with C linkage

   1337 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1349:3: error: template with C linkage

   1349 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1358:3: error: template with C linkage

   1358 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1362:3: error: template with C linkage

   1362 |   template<typename _Tp, std::size_t _Size>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1366:3: error: template with C linkage

   1366 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1371:3: error: template with C linkage

   1371 |   template<typename, unsigned _Uint>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1375:3: error: template with C linkage

   1375 |   template<typename _Tp, unsigned _Uint, std::size_t _Size>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1382:3: error: template with C linkage

   1382 |   template<typename _Tp, unsigned _Uint>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1393:3: error: template with C linkage

   1393 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1410:3: error: template with C linkage

   1410 |   template<typename _Base, typename _Derived>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1415:3: error: template with C linkage

   1415 |   template<typename _From, typename _To,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1425:3: error: template with C linkage

   1425 |   template<typename _From, typename _To>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1446:3: error: template with C linkage

   1446 |   template<typename _From, typename _To>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1452:3: error: template with C linkage

   1452 |   template<typename _ToElementType, typename _FromElementType>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1456:3: error: template with C linkage

   1456 |   template<typename _From, typename _To,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1465:3: error: template with C linkage

   1465 |   template<typename _From, typename _To>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1486:3: error: template with C linkage

   1486 |   template<typename _From, typename _To>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1508:3: error: template with C linkage

   1508 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1512:3: error: template with C linkage

   1512 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1517:3: error: template with C linkage

   1517 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1521:3: error: template with C linkage

   1521 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1526:3: error: template with C linkage

   1526 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1530:3: error: template with C linkage

   1530 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1534:3: error: template with C linkage

   1534 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1538:3: error: template with C linkage

   1538 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1543:3: error: template with C linkage

   1543 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1548:3: error: template with C linkage

   1548 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1553:3: error: template with C linkage

   1553 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1565:3: error: template with C linkage

   1565 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1569:3: error: template with C linkage

   1569 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1573:3: error: template with C linkage

   1573 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1577:3: error: template with C linkage

   1577 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1581:3: error: template with C linkage

   1581 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1585:3: error: template with C linkage

   1585 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1592:3: error: template with C linkage

   1592 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1596:3: error: template with C linkage

   1596 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1600:3: error: template with C linkage

   1600 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1604:3: error: template with C linkage

   1604 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1608:3: error: template with C linkage

   1608 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1613:3: error: template with C linkage

   1613 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1618:3: error: template with C linkage

   1618 |   template<typename _Tp, bool = __is_referenceable<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1622:3: error: template with C linkage

   1622 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1627:3: error: template with C linkage

   1627 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1634:3: error: template with C linkage

   1634 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1638:3: error: template with C linkage

   1638 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1642:3: error: template with C linkage

   1642 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1649:3: error: template with C linkage

   1649 |   template<typename _Unqualified, bool _IsConst, bool _IsVol>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1652:3: error: template with C linkage

   1652 |   template<typename _Unqualified>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1656:3: error: template with C linkage

   1656 |   template<typename _Unqualified>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1660:3: error: template with C linkage

   1660 |   template<typename _Unqualified>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1664:3: error: template with C linkage

   1664 |   template<typename _Unqualified>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1668:3: error: template with C linkage

   1668 |   template<typename _Qualified, typename _Unqualified,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1680:3: error: template with C linkage

   1680 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1684:3: error: template specialization with C
  linkage

   1684 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1688:3: error: template specialization with C
  linkage

   1688 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1692:3: error: template specialization with C
  linkage

   1692 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1696:3: error: template specialization with C
  linkage

   1696 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1700:3: error: template specialization with C
  linkage

   1700 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1704:3: error: template specialization with C
  linkage

   1704 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1709:3: error: template specialization with C
  linkage

   1709 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1730:3: error: template with C linkage

   1730 |   template<typename _Tp,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1735:3: error: template with C linkage

   1735 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1749:5: error: template with C linkage

   1749 |     template<typename...> struct _List { };
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1751:5: error: template with C linkage

   1751 |     template<typename _Tp, typename... _Up>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1755:5: error: template with C linkage

   1755 |     template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1758:5: error: template with C linkage

   1758 |     template<size_t _Sz, typename _Uint, typename... _UInts>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1762:5: error: template with C linkage

   1762 |     template<size_t _Sz, typename _Uint, typename... _UInts>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1769:3: error: template with C linkage

   1769 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1789:3: error: template specialization with C
  linkage

   1789 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1806:3: error: template specialization with C
  linkage

   1806 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1813:3: error: template specialization with C
  linkage

   1813 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1824:3: error: template with C linkage

   1824 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1829:3: error: template specialization with C
  linkage

   1829 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1834:3: error: template with C linkage

   1834 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1838:3: error: template specialization with C
  linkage

   1838 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1842:3: error: template specialization with C
  linkage

   1842 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1846:3: error: template specialization with C
  linkage

   1846 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1850:3: error: template specialization with C
  linkage

   1850 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1854:3: error: template specialization with C
  linkage

   1854 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1858:3: error: template specialization with C
  linkage

   1858 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1863:3: error: template specialization with C
  linkage

   1863 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1884:3: error: template with C linkage

   1884 |   template<typename _Tp,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1889:3: error: template with C linkage

   1889 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1901:3: error: template with C linkage

   1901 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1915:3: error: template specialization with C
  linkage

   1915 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1932:3: error: template specialization with C
  linkage

   1932 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1939:3: error: template specialization with C
  linkage

   1939 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1950:3: error: template with C linkage

   1950 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1955:3: error: template specialization with C
  linkage

   1955 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1960:3: error: template with C linkage

   1960 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1964:3: error: template with C linkage

   1964 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1971:3: error: template with C linkage

   1971 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1975:3: error: template with C linkage

   1975 |   template<typename _Tp, std::size_t _Size>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1979:3: error: template with C linkage

   1979 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1984:3: error: template with C linkage

   1984 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1988:3: error: template with C linkage

   1988 |   template<typename _Tp, std::size_t _Size>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1992:3: error: template with C linkage

   1992 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:1998:3: error: template with C linkage

   1998 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2002:3: error: template with C linkage

   2002 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2008:3: error: template with C linkage

   2008 |   template<typename _Tp, typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2012:3: error: template with C linkage

   2012 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2017:3: error: template with C linkage

   2017 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2023:3: error: template with C linkage

   2023 |   template<typename _Tp, bool = __or_<__is_referenceable<_Tp>,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2028:3: error: template with C linkage

   2028 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2032:3: error: template with C linkage

   2032 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2039:3: error: template with C linkage

   2039 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2043:3: error: template with C linkage

   2043 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2047:3: error: template with C linkage

   2047 |   template<std::size_t _Len>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2067:3: error: template with C linkage

   2067 |   template<std::size_t _Len, std::size_t _Align =
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2078:3: error: template with C linkage

   2078 |   template <typename... _Types>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2085:3: error: template with C linkage

   2085 |   template <typename _Tp, typename... _Types>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2106:3: error: template with C linkage

   2106 |   template <size_t _Len, typename... _Types>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2122:3: error: template with C linkage

   2122 |   template <size_t _Len, typename... _Types>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2127:3: error: template with C linkage

   2127 |   template<typename _Up,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2133:3: error: template with C linkage

   2133 |   template<typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2137:3: error: template with C linkage

   2137 |   template<typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2141:3: error: template with C linkage

   2141 |   template<typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2146:3: error: template with C linkage

   2146 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2156:3: error: template with C linkage

   2156 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2159:3: error: template with C linkage

   2159 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2163:3: error: template with C linkage

   2163 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2169:3: error: template with C linkage

   2169 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2175:3: error: template with C linkage

   2175 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2181:3: error: template with C linkage

   2181 |   template<bool, typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2186:3: error: template with C linkage

   2186 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2191:3: error: template with C linkage

   2191 |   template<bool _Cond, typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2194:3: error: template with C linkage

   2194 |   template<typename... _Cond>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2199:3: error: template with C linkage

   2199 |   template<bool _Cond, typename _Iftrue, typename _Iffalse>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2204:3: error: template with C linkage

   2204 |   template<typename _Iftrue, typename _Iffalse>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2209:3: error: template with C linkage

   2209 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2214:3: error: template with C linkage

   2214 |   template<typename... _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2221:5: error: template with C linkage

   2221 |     template<typename _Tp, typename _Up>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2227:5: error: template with C linkage

   2227 |     template<typename _Tp, typename _Up>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2239:5: error: template with C linkage

   2239 |     template<typename, typename>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2243:5: error: template with C linkage

   2243 |     template<typename _Tp, typename _Up>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2249:3: error: template specialization with C
  linkage

   2249 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2254:3: error: template with C linkage

   2254 |   template<typename _Tp0>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2260:3: error: template with C linkage

   2260 |   template<typename _Tp1, typename _Tp2,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2269:3: error: template with C linkage

   2269 |   template<typename _Tp1, typename _Tp2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2279:3: error: template with C linkage

   2279 |   template<typename _Tp1, typename _Tp2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2284:3: error: template with C linkage

   2284 |   template<typename...>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2288:3: error: template with C linkage

   2288 |   template<typename, typename, typename = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2292:3: error: template with C linkage

   2292 |   template<typename _Tp1, typename _Tp2, typename... _Rp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2301:3: error: template with C linkage

   2301 |   template<typename _CTp, typename... _Rp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2308:3: error: template with C linkage

   2308 |   template<typename _CTp, typename _Rp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2312:3: error: template with C linkage

   2312 |   template<typename _Tp, bool = is_enum<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2318:3: error: template with C linkage

   2318 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2323:3: error: template with C linkage

   2323 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2328:3: error: template with C linkage

   2328 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2334:3: error: template with C linkage

   2334 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2343:3: error: template with C linkage

   2343 |   template<typename _Signature>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2357:3: error: template with C linkage

   2357 |   template<typename _Tp, typename _Tag>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2364:5: error: template with C linkage

   2364 |     template<typename _Fp, typename _Tp1, typename... _Args>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2369:5: error: template with C linkage

   2369 |     template<typename...>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2373:3: error: template with C linkage

   2373 |   template<typename _MemPtr, typename _Arg, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2383:5: error: template with C linkage

   2383 |     template<typename _Fp, typename _Tp1, typename... _Args>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2388:5: error: template with C linkage

   2388 |     template<typename...>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2392:3: error: template with C linkage

   2392 |   template<typename _MemPtr, typename _Arg, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2402:5: error: template with C linkage

   2402 |     template<typename _Fp, typename _Tp1>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2407:5: error: template with C linkage

   2407 |     template<typename, typename>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2411:3: error: template with C linkage

   2411 |   template<typename _MemPtr, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2421:5: error: template with C linkage

   2421 |     template<typename _Fp, typename _Tp1>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2426:5: error: template with C linkage

   2426 |     template<typename, typename>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2430:3: error: template with C linkage

   2430 |   template<typename _MemPtr, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2437:3: error: template with C linkage

   2437 |   template<typename _MemPtr, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2440:3: error: template with C linkage

   2440 |   template<typename _Res, typename _Class, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2452:3: error: template with C linkage

   2452 |   template<typename _MemPtr, typename _Arg, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2455:3: error: template with C linkage

   2455 |   template<typename _Res, typename _Class, typename _Arg, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2471:3: error: template with C linkage

   2471 |   template<typename _Tp, typename _Up = __remove_cvref_t<_Tp>>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2477:3: error: template with C linkage

   2477 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2483:3: error: template with C linkage

   2483 |   template<bool, bool, typename _Functor, typename... _ArgTypes>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2489:3: error: template with C linkage

   2489 |   template<typename _MemPtr, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2495:3: error: template with C linkage

   2495 |   template<typename _MemPtr, typename _Arg, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2504:5: error: template with C linkage

   2504 |     template<typename _Fn, typename... _Args>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2509:5: error: template with C linkage

   2509 |     template<typename...>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2513:3: error: template with C linkage

   2513 |   template<typename _Functor, typename... _ArgTypes>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2521:3: error: template with C linkage

   2521 |   template<typename _Functor, typename... _ArgTypes>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2534:3: error: template with C linkage

   2534 |   template<typename _Functor, typename... _ArgTypes>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2541:3: error: template with C linkage

   2541 |   template<size_t _Len, size_t _Align =
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2545:3: error: template with C linkage

   2545 |   template <size_t _Len, typename... _Types>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2549:3: error: template with C linkage

   2549 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2553:3: error: template with C linkage

   2553 |   template<bool _Cond, typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2557:3: error: template with C linkage

   2557 |   template<bool _Cond, typename _Iftrue, typename _Iffalse>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2561:3: error: template with C linkage

   2561 |   template<typename... _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2565:3: error: template with C linkage

   2565 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2569:3: error: template with C linkage

   2569 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2576:3: error: template with C linkage

   2576 |   template<typename...> using void_t = void;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2580:3: error: template with C linkage

   2580 |   template<typename _Default, typename _AlwaysVoid,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2589:3: error: template with C linkage

   2589 |   template<typename _Default, template<typename...> class _Op,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2598:3: error: template with C linkage

   2598 |   template<typename _Default, template<typename...> class _Op,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2603:3: error: template with C linkage

   2603 |   template<typename _Default, template<typename...> class _Op,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2624:3: error: template with C linkage

   2624 |   template <typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2627:3: error: template with C linkage

   2627 |   template <typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2630:3: error: template with C linkage

   2630 |   template<typename... _Elements>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2633:3: error: template with C linkage

   2633 |   template<typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2637:3: error: template with C linkage

   2637 |   template<typename... _Tps>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2642:3: error: template with C linkage

   2642 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2647:3: error: template with C linkage

   2647 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2657:3: error: template with C linkage

   2657 |   template<typename _Tp, size_t _Nm>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2669:7: error: template with C linkage

   2669 |       template<typename _Tp, typename
        |       ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2673:7: error: template with C linkage

   2673 |       template<typename>
        |       ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2679:7: error: template with C linkage

   2679 |       template<typename _Tp>
        |       ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2684:7: error: template with C linkage

   2684 |       template<typename>
        |       ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2690:3: error: template with C linkage

   2690 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2697:3: error: template with C linkage

   2697 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2704:3: error: template with C linkage

   2704 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2709:3: error: template with C linkage

   2709 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2719:3: error: template with C linkage

   2719 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2728:3: error: template with C linkage

   2728 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2738:3: error: template with C linkage

   2738 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2743:3: error: template with C linkage

   2743 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2753:7: error: template with C linkage

   2753 |       template<typename _Tp, typename _Up, typename
        |       ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2759:7: error: template with C linkage

   2759 |       template<typename, typename>
        |       ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2765:7: error: template with C linkage

   2765 |       template<typename _Tp, typename _Up>
        |       ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2772:7: error: template with C linkage

   2772 |       template<typename, typename>
        |       ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2778:3: error: template with C linkage

   2778 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2786:3: error: template with C linkage

   2786 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2793:3: error: template with C linkage

   2793 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2801:3: error: template with C linkage

   2801 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2809:3: error: template with C linkage

   2809 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2815:3: error: template with C linkage

   2815 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2822:3: error: template with C linkage

   2822 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2827:3: error: template with C linkage

   2827 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2837:3: error: template with C linkage

   2837 |   template<typename _Result, typename _Ret,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2842:3: error: template with C linkage

   2842 |   template<typename _Result, typename _Ret>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2852:3: error: template with C linkage

   2852 |   template<typename _Result, typename _Ret>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2879:3: error: template with C linkage

   2879 |   template<typename _Fn, typename... _ArgTypes>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2884:3: error: template with C linkage

   2884 |   template<typename _Fn, typename _Tp, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2892:3: error: template with C linkage

   2892 |   template<typename _Fn, typename _Tp, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2899:3: error: template with C linkage

   2899 |   template<typename _Fn, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2906:3: error: template with C linkage

   2906 |   template<typename _Fn, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2912:3: error: template with C linkage

   2912 |   template<typename _Fn, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2918:3: error: template with C linkage

   2918 |   template<typename _Result, typename _Fn, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2925:3: error: template with C linkage

   2925 |   template<typename _Fn, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/move.h:57,

                   from /usr/include/g++/bits/exception_ptr.h:43,
                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/type_traits:2930:3: error: template with C linkage

   2930 |   template<typename _Fn, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/exception_ptr.h:43,

                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/move.h:74:3: error: template with C linkage

     74 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/exception_ptr.h:43,

                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/move.h:85:3: error: template with C linkage

     85 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/exception_ptr.h:43,

                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/move.h:99:3: error: template with C linkage

     99 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/exception_ptr.h:43,

                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/move.h:105:3: error: template with C linkage

    105 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/exception_ptr.h:43,

                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/move.h:118:3: error: template with C linkage

    118 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/exception_ptr.h:43,

                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/move.h:138:3: error: template with C linkage

    138 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/exception_ptr.h:43,

                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/move.h:145:3: error: template with C linkage

    145 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/exception_ptr.h:43,

                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/move.h:149:3: error: template with C linkage

    149 |   template <typename _Tp, typename _Up = _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/exception_ptr.h:43,

                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/move.h:179:3: error: template with C linkage

    179 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/exception_ptr.h:43,

                   from /usr/include/g++/exception:147,
                   from /usr/include/g++/ios:39,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/move.h:205:3: error: template with C linkage

    205 |   template<typename _Tp, size_t _Nm>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:60,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functexcept.h:98:3: error: conflicting declaration of
  C function 'void std::__throw_ios_failure(const char*, int)'

     98 |   __throw_ios_failure(const char*, int) __attribute__((__noreturn__));
        |   ^~~~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/functexcept.h:95:3: note: previous declaration 'void
  std::__throw_ios_failure(const char*)'

     95 |   __throw_ios_failure(const char*) __attribute__((__noreturn__));
        |   ^~~~~~~~~~~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:50:3: error: template with C linkage

     50 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:60:3: error: template with C linkage

     60 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:81:3: error: template with C linkage

     81 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:84:3: error: template with C linkage

     84 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:87:3: error: template with C linkage

     87 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:90:3: error: template with C linkage

     90 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:135:3: error: template with C linkage

    135 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:155:3: error: template with C linkage

    155 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:167:3: error: template with C linkage

    167 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:170:3: error: template with C linkage

    170 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:173:3: error: template with C linkage

    173 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:176:3: error: template with C linkage

    176 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:63,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/numeric_traits.h:179:3: error: template with C linkage

    179 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:89:3: error: template with C linkage

     89 |   template<typename...>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:92:3: error: template with C linkage

     92 |   template<std::size_t...>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:100:3: error: template with C linkage

    100 |   template <bool, typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:160:3: error: template with C linkage

    160 |   template <typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:189:3: error: template with C linkage

    189 |   template<typename _U1, typename _U2> class __pair_base
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:210:3: error: template with C linkage

    210 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:464:3: error: template with C linkage

    464 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:487:3: error: template with C linkage

    487 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:494:3: error: template with C linkage

    494 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:500:3: error: template with C linkage

    500 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:506:3: error: template with C linkage

    506 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:512:3: error: template with C linkage

    512 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:524:3: error: template with C linkage

    524 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:538:3: error: template with C linkage

    538 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:64,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_pair.h:564:3: error: template with C linkage

    564 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:65,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_types.h:125:3: error: template with
  C linkage

    125 |   template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:65,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_types.h:149:3: error: template with
  C linkage

    149 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:65,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_types.h:155:3: error: template with
  C linkage

    155 |   template<typename _Iterator, typename = __void_t<>>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:65,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_types.h:160:3: error: template with
  C linkage

    160 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:65,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_types.h:176:3: error: template with
  C linkage

    176 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:65,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_types.h:209:3: error: template with
  C linkage

    209 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:65,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_types.h:220:3: error: template with
  C linkage

    220 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:65,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_types.h:235:3: error: template with
  C linkage

    235 |   template<typename _Iter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:65,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_types.h:244:3: error: template with
  C linkage

    244 |   template<typename _Iter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:65,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_types.h:248:3: error: template with
  C linkage

    248 |   template<typename _InIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:65,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_types.h:253:3: error: template with
  C linkage

    253 |   template<typename _It,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:73:3: error: template with
  C linkage

     73 |   template <typename> struct _List_iterator;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:74:3: error: template with
  C linkage

     74 |   template <typename> struct _List_const_iterator;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:77:3: error: template with
  C linkage

     77 |   template<typename _InputIterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:95:3: error: template with
  C linkage

     95 |   template<typename _RandomAccessIterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:109:3: error: template with
  C linkage

    109 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:115:3: error: template with
  C linkage

    115 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:135:3: error: template with
  C linkage

    135 |   template<typename _InputIterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:145:3: error: template with
  C linkage

    145 |   template<typename _InputIterator, typename _Distance>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:156:3: error: template with
  C linkage

    156 |   template<typename _BidirectionalIterator, typename _Distance>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:172:3: error: template with
  C linkage

    172 |   template<typename _RandomAccessIterator, typename _Distance>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:200:3: error: template with
  C linkage

    200 |   template<typename _InputIterator, typename _Distance>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:211:3: error: template with
  C linkage

    211 |   template<typename _InputIterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:66,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator_base_funcs.h:222:3: error: template with
  C linkage

    222 |   template<typename _BidirectionalIterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:49:3: error: template with C linkage

     49 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:53:3: error: template with C linkage

     53 |   template<template<typename, typename...> class _Template, typename _Tp,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:58:3: error: template with C linkage

     58 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:62:3: error: template with C linkage

     62 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:66:3: error: template with C linkage

     66 |   template<template<typename, typename...> class _Template, typename _Up,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:71:3: error: template with C linkage

     71 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:74:3: error: template with C linkage

     74 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:82:3: error: template with C linkage

     82 |   template<typename _Ptr>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:127:3: error: template with C linkage

    127 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:151:3: error: template with C linkage

    151 |   template<typename _Ptr, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:154:3: error: template with C linkage

    154 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_iterator.h:67,

                   from /usr/include/g++/bits/stl_algobase.h:67,
                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ptr_traits.h:163:3: error: template with C linkage

    163 |   template<typename _Ptr>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:125:3: error: template with C linkage

    125 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:387:3: error: template with C linkage

    387 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:393:3: error: template with C linkage

    393 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:399:3: error: template with C linkage

    399 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:405:3: error: template with C linkage

    405 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:411:3: error: template with C linkage

    411 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:417:3: error: template with C linkage

    417 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:425:3: error: template with C linkage

    425 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:431:3: error: template with C linkage

    431 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:437:3: error: template with C linkage

    437 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:443:3: error: template with C linkage

    443 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:449:3: error: template with C linkage

    449 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:455:3: error: template with C linkage

    455 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:543:3: error: template with C linkage

    543 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:551:3: error: template with C linkage

    551 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:559:3: error: template with C linkage

    559 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:570:3: error: template with C linkage

    570 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:584:3: error: template with C linkage

    584 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:591:3: error: template with C linkage

    591 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:596:3: error: template with C linkage

    596 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:615:3: error: template with C linkage

    615 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:702:3: error: template with C linkage

    702 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:718:3: error: template with C linkage

    718 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:805:3: error: template with C linkage

    805 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:825:3: error: template with C linkage

    825 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:949:3: error: template with C linkage

    949 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:971:3: error: template with C linkage

    971 |   template<typename _Iterator, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1120:3: error: template with C linkage

   1120 |   template<typename _IteratorL, typename _IteratorR, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1128:3: error: template with C linkage

   1128 |   template<typename _Iterator, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1136:3: error: template with C linkage

   1136 |   template<typename _IteratorL, typename _IteratorR, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1144:3: error: template with C linkage

   1144 |   template<typename _Iterator, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1153:3: error: template with C linkage

   1153 |   template<typename _IteratorL, typename _IteratorR, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1160:3: error: template with C linkage

   1160 |   template<typename _Iterator, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1168:3: error: template with C linkage

   1168 |   template<typename _IteratorL, typename _IteratorR, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1175:3: error: template with C linkage

   1175 |   template<typename _Iterator, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1183:3: error: template with C linkage

   1183 |   template<typename _IteratorL, typename _IteratorR, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1190:3: error: template with C linkage

   1190 |   template<typename _Iterator, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1198:3: error: template with C linkage

   1198 |   template<typename _IteratorL, typename _IteratorR, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1205:3: error: template with C linkage

   1205 |   template<typename _Iterator, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1218:3: error: template with C linkage

   1218 |   template<typename _IteratorL, typename _IteratorR, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1233:3: error: template with C linkage

   1233 |   template<typename _Iterator, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1241:3: error: template with C linkage

   1241 |   template<typename _Iterator, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1256:3: error: template with C linkage

   1256 |   template<typename _Iterator, typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1337:3: error: template with C linkage

   1337 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1515:3: error: template with C linkage

   1515 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1532:3: error: template with C linkage

   1532 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1539:3: error: template with C linkage

   1539 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1548:3: error: template with C linkage

   1548 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1557:3: error: template with C linkage

   1557 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1566:3: error: template with C linkage

   1566 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1578:3: error: template with C linkage

   1578 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1591:3: error: template with C linkage

   1591 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1597:3: error: template with C linkage

   1597 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1603:3: error: template with C linkage

   1603 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1609:3: error: template with C linkage

   1609 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1615:3: error: template with C linkage

   1615 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1623:3: error: template with C linkage

   1623 |   template<typename _IteratorL, typename _IteratorR>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1630:3: error: template with C linkage

   1630 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1636:3: error: template with C linkage

   1636 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1641:3: error: template with C linkage

   1641 |   template<typename _Iterator, typename _ReturnType
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:1651:3: error: template with C linkage

   1651 |   template<typename _Tp, typename _ReturnType
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:2363:3: error: template with C linkage

   2363 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:2370:3: error: template with C linkage

   2370 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:67,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_iterator.h:2377:3: error: template with C linkage

   2377 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:69,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/debug/debug.h:60:3: error: template with C linkage

     60 |   template<typename _Ite, typename _Seq, typename _Cat>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:39:5: error: template with C linkage

     39 |     template<typename _Iterator1, typename _Iterator2>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:63:5: error: template with C linkage

     63 |     template<typename _Iterator, typename _Value>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:92:5: error: template with C linkage

     92 |     template<typename _Value, typename _Iterator>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:111:5: error: template with C
  linkage

    111 |     template<typename _Iterator1, typename _Iterator2>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:125:5: error: template with C
  linkage

    125 |     template<typename _Iterator, typename _Value>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:139:3: error: conflicting
  declaration of C function '__gnu_cxx::__ops::_Iter_equal_to_val
  __gnu_cxx::__ops::__iter_comp_val(__gnu_cxx::__ops::_Iter_equal_to_iter)'

    139 |   __iter_comp_val(_Iter_equal_to_iter)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/bits/predefined_ops.h:77:3: note: previous declaration
  '__gnu_cxx::__ops::_Iter_less_val
  __gnu_cxx::__ops::__iter_comp_val(__gnu_cxx::__ops::_Iter_less_iter)'

     77 |   __iter_comp_val(_Iter_less_iter)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/bits/predefined_ops.h:142:3: error: template with C
  linkage

    142 |   template<typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:159:3: error: template with C
  linkage

    159 |   template<typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:165:3: error: template with C
  linkage

    165 |   template<typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:197:3: error: template with C
  linkage

    197 |   template<typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:203:3: error: template with C
  linkage

    203 |   template<typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:209:3: error: template with C
  linkage

    209 |   template<typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:241:3: error: template with C
  linkage

    241 |   template<typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:247:3: error: template with C
  linkage

    247 |   template<typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:253:3: error: template with C
  linkage

    253 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:271:3: error: template with C
  linkage

    271 |   template<typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:277:3: error: template with C
  linkage

    277 |   template<typename _Iterator1>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:295:3: error: template with C
  linkage

    295 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:301:3: error: template with C
  linkage

    301 |   template<typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:319:3: error: template with C
  linkage

    319 |   template<typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:325:3: error: template with C
  linkage

    325 |   template<typename _Compare, typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:343:3: error: template with C
  linkage

    343 |   template<typename _Compare, typename _Value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:351:3: error: template with C
  linkage

    351 |   template<typename _Compare, typename _Iterator1>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:369:3: error: template with C
  linkage

    369 |   template<typename _Compare, typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:378:3: error: template with C
  linkage

    378 |   template<typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_algobase.h:71,

                   from /usr/include/g++/bits/char_traits.h:39,
                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/predefined_ops.h:396:3: error: template with C
  linkage

    396 |   template<typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:87:3: error: template with C linkage

     87 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:149:3: error: template with C linkage

    149 |   template<typename _ForwardIterator1, typename _ForwardIterator2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:198:3: error: template with C linkage

    198 |   template<typename _ForwardIterator1, typename _ForwardIterator2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:227:3: error: template with C linkage

    227 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:251:3: error: template with C linkage

    251 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:275:3: error: template with C linkage

    275 |   template<typename _Tp, typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:297:3: error: template with C linkage

    297 |   template<typename _Tp, typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:310:3: error: template with C linkage

    310 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:320:3: error: template with C linkage

    320 |   template<typename _From, typename _To>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:327:3: error: template with C linkage

    327 |   template<typename _Iterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:339:3: error: template with C linkage

    339 |   template<bool _IsMove, bool _IsSimple, typename _Category>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:354:3: error: template with C linkage

    354 |   template<typename _Category>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:369:3: error: template specialization
  with C linkage

    369 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:389:3: error: template specialization
  with C linkage

    389 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:409:3: error: template with C linkage

    409 |   template<bool _IsMove>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:433:3: error: template with C linkage

    433 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:436:3: error: template with C linkage

    436 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:439:3: error: template with C linkage

    439 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:442:3: error: template with C linkage

    442 |   template<bool _IsMove, typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:448:3: error: template with C linkage

    448 |   template<bool _IsMove, typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:454:3: error: template with C linkage

    454 |   template<bool _IsMove, typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:460:3: error: template with C linkage

    460 |   template<bool _IsMove, typename _II, typename _OI>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:477:3: error: template with C linkage

    477 |   template<typename _Tp, typename _Ref, typename _Ptr>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:482:3: error: template with C linkage

    482 |   template<bool _IsMove,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:489:3: error: template with C linkage

    489 |   template<bool _IsMove,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:496:3: error: template with C linkage

    496 |   template<bool _IsMove, typename _II, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:502:3: error: template with C linkage

    502 |   template<bool _IsMove, typename _II, typename _OI>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:508:3: error: template with C linkage

    508 |   template<bool _IsMove, typename _II, typename _OI>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:519:3: error: template with C linkage

    519 |   template<bool _IsMove,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:526:3: error: template with C linkage

    526 |   template<bool _IsMove,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:532:3: error: template with C linkage

    532 |   template<bool _IsMove,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:557:3: error: template with C linkage

    557 |   template<typename _II, typename _OI>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:590:3: error: template with C linkage

    590 |   template<typename _II, typename _OI>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:610:3: error: template with C linkage

    610 |   template<bool _IsMove, bool _IsSimple, typename _Category>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:625:3: error: template with C linkage

    625 |   template<typename _Category>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:640:3: error: template specialization
  with C linkage

    640 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:657:3: error: template specialization
  with C linkage

    657 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:674:3: error: template with C linkage

    674 |   template<bool _IsMove>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:696:3: error: template with C linkage

    696 |   template<bool _IsMove, typename _BI1, typename _BI2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:714:3: error: template with C linkage

    714 |   template<bool _IsMove, typename _BI1, typename _BI2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:720:3: error: template with C linkage

    720 |   template<bool _IsMove,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:727:3: error: template with C linkage

    727 |   template<bool _IsMove,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:735:3: error: template with C linkage

    735 |   template<bool _IsMove, typename _II, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:742:3: error: template with C linkage

    742 |   template<bool _IsMove, typename _II, typename _OI>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:753:3: error: template with C linkage

    753 |   template<bool _IsMove,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:761:3: error: template with C linkage

    761 |   template<bool _IsMove,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:767:3: error: template with C linkage

    767 |   template<bool _IsMove,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:794:3: error: template with C linkage

    794 |   template<typename _BI1, typename _BI2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:830:3: error: template with C linkage

    830 |   template<typename _BI1, typename _BI2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:853:3: error: template with C linkage

    853 |   template<typename _ForwardIterator, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:864:3: error: template with C linkage

    864 |   template<typename _ForwardIterator, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:877:3: error: template with C linkage

    877 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:896:3: error: template with C linkage

    896 |   template<typename _Ite, typename _Cont, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:904:3: error: template with C linkage

    904 |   template<typename _Tp, typename _VTp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:910:3: error: template with C linkage

    910 |   template<typename _FIte, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:916:3: error: template with C linkage

    916 |   template<typename _Ite, typename _Seq, typename _Cat, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:934:3: error: template with C linkage

    934 |   template<typename _ForwardIterator, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:951:3: error: conflicting declaration
  of C function 'constexpr unsigned int std::__size_to_integer(unsigned int)'

    951 |   __size_to_integer(unsigned __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:949:3: note: previous declaration
  'constexpr int std::__size_to_integer(int)'

    949 |   __size_to_integer(int __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:953:3: error: conflicting declaration
  of C function 'constexpr long int std::__size_to_integer(long int)'

    953 |   __size_to_integer(long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:951:3: note: previous declaration
  'constexpr unsigned int std::__size_to_integer(unsigned int)'

    951 |   __size_to_integer(unsigned __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:953:3: error: conflicting declaration
  of C function 'constexpr long int std::__size_to_integer(long int)'

    953 |   __size_to_integer(long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:949:3: note: previous declaration
  'constexpr int std::__size_to_integer(int)'

    949 |   __size_to_integer(int __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:955:3: error: conflicting declaration
  of C function 'constexpr long unsigned int std::__size_to_integer(long
  unsigned int)'

    955 |   __size_to_integer(unsigned long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:953:3: note: previous declaration
  'constexpr long int std::__size_to_integer(long int)'

    953 |   __size_to_integer(long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:955:3: error: conflicting declaration
  of C function 'constexpr long unsigned int std::__size_to_integer(long
  unsigned int)'

    955 |   __size_to_integer(unsigned long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:951:3: note: previous declaration
  'constexpr unsigned int std::__size_to_integer(unsigned int)'

    951 |   __size_to_integer(unsigned __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:955:3: error: conflicting declaration
  of C function 'constexpr long unsigned int std::__size_to_integer(long
  unsigned int)'

    955 |   __size_to_integer(unsigned long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:949:3: note: previous declaration
  'constexpr int std::__size_to_integer(int)'

    949 |   __size_to_integer(int __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:957:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long long
  int)'

    957 |   __size_to_integer(long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:955:3: note: previous declaration
  'constexpr long unsigned int std::__size_to_integer(long unsigned int)'

    955 |   __size_to_integer(unsigned long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:957:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long long
  int)'

    957 |   __size_to_integer(long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:953:3: note: previous declaration
  'constexpr long int std::__size_to_integer(long int)'

    953 |   __size_to_integer(long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:957:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long long
  int)'

    957 |   __size_to_integer(long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:951:3: note: previous declaration
  'constexpr unsigned int std::__size_to_integer(unsigned int)'

    951 |   __size_to_integer(unsigned __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:957:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long long
  int)'

    957 |   __size_to_integer(long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:949:3: note: previous declaration
  'constexpr int std::__size_to_integer(int)'

    949 |   __size_to_integer(int __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:959:3: error: conflicting declaration
  of C function 'constexpr long long unsigned int std::__size_to_integer(long
  long unsigned int)'

    959 |   __size_to_integer(unsigned long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:957:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(long long int)'

    957 |   __size_to_integer(long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:959:3: error: conflicting declaration
  of C function 'constexpr long long unsigned int std::__size_to_integer(long
  long unsigned int)'

    959 |   __size_to_integer(unsigned long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:955:3: note: previous declaration
  'constexpr long unsigned int std::__size_to_integer(long unsigned int)'

    955 |   __size_to_integer(unsigned long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:959:3: error: conflicting declaration
  of C function 'constexpr long long unsigned int std::__size_to_integer(long
  long unsigned int)'

    959 |   __size_to_integer(unsigned long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:953:3: note: previous declaration
  'constexpr long int std::__size_to_integer(long int)'

    953 |   __size_to_integer(long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:959:3: error: conflicting declaration
  of C function 'constexpr long long unsigned int std::__size_to_integer(long
  long unsigned int)'

    959 |   __size_to_integer(unsigned long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:951:3: note: previous declaration
  'constexpr unsigned int std::__size_to_integer(unsigned int)'

    951 |   __size_to_integer(unsigned __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:959:3: error: conflicting declaration
  of C function 'constexpr long long unsigned int std::__size_to_integer(long
  long unsigned int)'

    959 |   __size_to_integer(unsigned long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:949:3: note: previous declaration
  'constexpr int std::__size_to_integer(int)'

    949 |   __size_to_integer(int __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:963:3: error: conflicting declaration
  of C function 'constexpr __int128 std::__size_to_integer(__int128)'

    963 |   __size_to_integer(__GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:959:3: note: previous declaration
  'constexpr long long unsigned int std::__size_to_integer(long long unsigned
  int)'

    959 |   __size_to_integer(unsigned long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:963:3: error: conflicting declaration
  of C function 'constexpr __int128 std::__size_to_integer(__int128)'

    963 |   __size_to_integer(__GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:957:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(long long int)'

    957 |   __size_to_integer(long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:963:3: error: conflicting declaration
  of C function 'constexpr __int128 std::__size_to_integer(__int128)'

    963 |   __size_to_integer(__GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:955:3: note: previous declaration
  'constexpr long unsigned int std::__size_to_integer(long unsigned int)'

    955 |   __size_to_integer(unsigned long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:963:3: error: conflicting declaration
  of C function 'constexpr __int128 std::__size_to_integer(__int128)'

    963 |   __size_to_integer(__GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:953:3: note: previous declaration
  'constexpr long int std::__size_to_integer(long int)'

    953 |   __size_to_integer(long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:963:3: error: conflicting declaration
  of C function 'constexpr __int128 std::__size_to_integer(__int128)'

    963 |   __size_to_integer(__GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:951:3: note: previous declaration
  'constexpr unsigned int std::__size_to_integer(unsigned int)'

    951 |   __size_to_integer(unsigned __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:963:3: error: conflicting declaration
  of C function 'constexpr __int128 std::__size_to_integer(__int128)'

    963 |   __size_to_integer(__GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:949:3: note: previous declaration
  'constexpr int std::__size_to_integer(int)'

    949 |   __size_to_integer(int __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:965:3: error: conflicting declaration
  of C function 'constexpr __int128 unsigned std::__size_to_integer(__int128
  unsigned)'

    965 |   __size_to_integer(unsigned __GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:963:3: note: previous declaration
  'constexpr __int128 std::__size_to_integer(__int128)'

    963 |   __size_to_integer(__GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:965:3: error: conflicting declaration
  of C function 'constexpr __int128 unsigned std::__size_to_integer(__int128
  unsigned)'

    965 |   __size_to_integer(unsigned __GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:959:3: note: previous declaration
  'constexpr long long unsigned int std::__size_to_integer(long long unsigned
  int)'

    959 |   __size_to_integer(unsigned long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:965:3: error: conflicting declaration
  of C function 'constexpr __int128 unsigned std::__size_to_integer(__int128
  unsigned)'

    965 |   __size_to_integer(unsigned __GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:957:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(long long int)'

    957 |   __size_to_integer(long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:965:3: error: conflicting declaration
  of C function 'constexpr __int128 unsigned std::__size_to_integer(__int128
  unsigned)'

    965 |   __size_to_integer(unsigned __GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:955:3: note: previous declaration
  'constexpr long unsigned int std::__size_to_integer(long unsigned int)'

    955 |   __size_to_integer(unsigned long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:965:3: error: conflicting declaration
  of C function 'constexpr __int128 unsigned std::__size_to_integer(__int128
  unsigned)'

    965 |   __size_to_integer(unsigned __GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:953:3: note: previous declaration
  'constexpr long int std::__size_to_integer(long int)'

    953 |   __size_to_integer(long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:965:3: error: conflicting declaration
  of C function 'constexpr __int128 unsigned std::__size_to_integer(__int128
  unsigned)'

    965 |   __size_to_integer(unsigned __GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:951:3: note: previous declaration
  'constexpr unsigned int std::__size_to_integer(unsigned int)'

    951 |   __size_to_integer(unsigned __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:965:3: error: conflicting declaration
  of C function 'constexpr __int128 unsigned std::__size_to_integer(__int128
  unsigned)'

    965 |   __size_to_integer(unsigned __GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:949:3: note: previous declaration
  'constexpr int std::__size_to_integer(int)'

    949 |   __size_to_integer(int __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:987:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(float)'

    987 |   __size_to_integer(float __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:965:3: note: previous declaration
  'constexpr __int128 unsigned std::__size_to_integer(__int128 unsigned)'

    965 |   __size_to_integer(unsigned __GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:987:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(float)'

    987 |   __size_to_integer(float __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:963:3: note: previous declaration
  'constexpr __int128 std::__size_to_integer(__int128)'

    963 |   __size_to_integer(__GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:987:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(float)'

    987 |   __size_to_integer(float __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:959:3: note: previous declaration
  'constexpr long long unsigned int std::__size_to_integer(long long unsigned
  int)'

    959 |   __size_to_integer(unsigned long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:987:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(float)'

    987 |   __size_to_integer(float __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:957:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(long long int)'

    957 |   __size_to_integer(long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:987:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(float)'

    987 |   __size_to_integer(float __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:955:3: note: previous declaration
  'constexpr long unsigned int std::__size_to_integer(long unsigned int)'

    955 |   __size_to_integer(unsigned long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:987:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(float)'

    987 |   __size_to_integer(float __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:953:3: note: previous declaration
  'constexpr long int std::__size_to_integer(long int)'

    953 |   __size_to_integer(long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:987:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(float)'

    987 |   __size_to_integer(float __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:951:3: note: previous declaration
  'constexpr unsigned int std::__size_to_integer(unsigned int)'

    951 |   __size_to_integer(unsigned __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:987:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(float)'

    987 |   __size_to_integer(float __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:949:3: note: previous declaration
  'constexpr int std::__size_to_integer(int)'

    949 |   __size_to_integer(int __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:989:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(double)'

    989 |   __size_to_integer(double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:987:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(float)'

    987 |   __size_to_integer(float __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:989:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(double)'

    989 |   __size_to_integer(double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:965:3: note: previous declaration
  'constexpr __int128 unsigned std::__size_to_integer(__int128 unsigned)'

    965 |   __size_to_integer(unsigned __GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:989:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(double)'

    989 |   __size_to_integer(double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:963:3: note: previous declaration
  'constexpr __int128 std::__size_to_integer(__int128)'

    963 |   __size_to_integer(__GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:989:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(double)'

    989 |   __size_to_integer(double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:959:3: note: previous declaration
  'constexpr long long unsigned int std::__size_to_integer(long long unsigned
  int)'

    959 |   __size_to_integer(unsigned long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:989:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(double)'

    989 |   __size_to_integer(double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:957:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(long long int)'

    957 |   __size_to_integer(long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:989:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(double)'

    989 |   __size_to_integer(double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:955:3: note: previous declaration
  'constexpr long unsigned int std::__size_to_integer(long unsigned int)'

    955 |   __size_to_integer(unsigned long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:989:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(double)'

    989 |   __size_to_integer(double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:953:3: note: previous declaration
  'constexpr long int std::__size_to_integer(long int)'

    953 |   __size_to_integer(long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:989:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(double)'

    989 |   __size_to_integer(double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:951:3: note: previous declaration
  'constexpr unsigned int std::__size_to_integer(unsigned int)'

    951 |   __size_to_integer(unsigned __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:989:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(double)'

    989 |   __size_to_integer(double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:949:3: note: previous declaration
  'constexpr int std::__size_to_integer(int)'

    949 |   __size_to_integer(int __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:991:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long double)'

    991 |   __size_to_integer(long double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:989:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(double)'

    989 |   __size_to_integer(double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:991:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long double)'

    991 |   __size_to_integer(long double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:987:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(float)'

    987 |   __size_to_integer(float __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:991:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long double)'

    991 |   __size_to_integer(long double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:965:3: note: previous declaration
  'constexpr __int128 unsigned std::__size_to_integer(__int128 unsigned)'

    965 |   __size_to_integer(unsigned __GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:991:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long double)'

    991 |   __size_to_integer(long double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:963:3: note: previous declaration
  'constexpr __int128 std::__size_to_integer(__int128)'

    963 |   __size_to_integer(__GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:991:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long double)'

    991 |   __size_to_integer(long double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:959:3: note: previous declaration
  'constexpr long long unsigned int std::__size_to_integer(long long unsigned
  int)'

    959 |   __size_to_integer(unsigned long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:991:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long double)'

    991 |   __size_to_integer(long double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:957:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(long long int)'

    957 |   __size_to_integer(long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:991:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long double)'

    991 |   __size_to_integer(long double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:955:3: note: previous declaration
  'constexpr long unsigned int std::__size_to_integer(long unsigned int)'

    955 |   __size_to_integer(unsigned long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:991:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long double)'

    991 |   __size_to_integer(long double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:953:3: note: previous declaration
  'constexpr long int std::__size_to_integer(long int)'

    953 |   __size_to_integer(long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:991:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long double)'

    991 |   __size_to_integer(long double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:951:3: note: previous declaration
  'constexpr unsigned int std::__size_to_integer(unsigned int)'

    951 |   __size_to_integer(unsigned __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:991:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(long double)'

    991 |   __size_to_integer(long double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:949:3: note: previous declaration
  'constexpr int std::__size_to_integer(int)'

    949 |   __size_to_integer(int __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:994:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(__float128)'

    994 |   __size_to_integer(__float128 __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:991:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(long double)'

    991 |   __size_to_integer(long double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:994:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(__float128)'

    994 |   __size_to_integer(__float128 __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:989:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(double)'

    989 |   __size_to_integer(double __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:994:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(__float128)'

    994 |   __size_to_integer(__float128 __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:987:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(float)'

    987 |   __size_to_integer(float __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:994:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(__float128)'

    994 |   __size_to_integer(__float128 __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:965:3: note: previous declaration
  'constexpr __int128 unsigned std::__size_to_integer(__int128 unsigned)'

    965 |   __size_to_integer(unsigned __GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:994:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(__float128)'

    994 |   __size_to_integer(__float128 __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:963:3: note: previous declaration
  'constexpr __int128 std::__size_to_integer(__int128)'

    963 |   __size_to_integer(__GLIBCXX_TYPE_INT_N_0 __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:994:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(__float128)'

    994 |   __size_to_integer(__float128 __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:959:3: note: previous declaration
  'constexpr long long unsigned int std::__size_to_integer(long long unsigned
  int)'

    959 |   __size_to_integer(unsigned long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:994:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(__float128)'

    994 |   __size_to_integer(__float128 __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:957:3: note: previous declaration
  'constexpr long long int std::__size_to_integer(long long int)'

    957 |   __size_to_integer(long long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:994:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(__float128)'

    994 |   __size_to_integer(__float128 __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:955:3: note: previous declaration
  'constexpr long unsigned int std::__size_to_integer(long unsigned int)'

    955 |   __size_to_integer(unsigned long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:994:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(__float128)'

    994 |   __size_to_integer(__float128 __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:953:3: note: previous declaration
  'constexpr long int std::__size_to_integer(long int)'

    953 |   __size_to_integer(long __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:994:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(__float128)'

    994 |   __size_to_integer(__float128 __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:951:3: note: previous declaration
  'constexpr unsigned int std::__size_to_integer(unsigned int)'

    951 |   __size_to_integer(unsigned __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:994:3: error: conflicting declaration
  of C function 'constexpr long long int std::__size_to_integer(__float128)'

    994 |   __size_to_integer(__float128 __n) { return (long long)__n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:949:3: note: previous declaration
  'constexpr int std::__size_to_integer(int)'

    949 |   __size_to_integer(int __n) { return __n; }
        |   ^~~~~~~~~~~~~~~~~

  /usr/include/g++/bits/stl_algobase.h:997:3: error: template with C linkage

    997 |   template<typename _OutputIterator, typename _Size, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1008:3: error: template with C linkage

   1008 |   template<typename _OutputIterator, typename _Size, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1020:3: error: template with C linkage

   1020 |   template<typename _Ite, typename _Seq, typename _Cat, typename _Size,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1027:3: error: template with C linkage

   1027 |   template<typename _OutputIterator, typename _Size, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1039:3: error: template with C linkage

   1039 |   template<typename _OutputIterator, typename _Size, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1051:3: error: template with C linkage

   1051 |   template<typename _OutputIterator, typename _Size, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1086:3: error: template with C linkage

   1086 |   template<typename _OI, typename _Size, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1098:3: error: template with C linkage

   1098 |   template<bool _BoolType>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1113:3: error: template specialization
  with C linkage

   1113 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1127:3: error: template with C linkage

   1127 |   template<typename _Tp, typename _Ref, typename _Ptr, typename _II>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1134:3: error: template with C linkage

   1134 |   template<typename _Tp1, typename _Ref1, typename _Ptr1,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1141:3: error: template with C linkage

   1141 |   template<typename _II, typename _Tp, typename _Ref, typename _Ptr>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1147:3: error: template with C linkage

   1147 |   template<typename _II1, typename _II2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1159:3: error: template with C linkage

   1159 |   template<typename _II1, typename _II2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1169:3: error: template with C linkage

   1169 |   template<typename _II1, typename _Seq1, typename _Cat1, typename _II2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1175:3: error: template with C linkage

   1175 |   template<typename _II1, typename _II2, typename _Seq2, typename _Cat2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1180:3: error: template with C linkage

   1180 |   template<typename _II1, typename _Seq1, typename _Cat1,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1187:3: error: template with C linkage

   1187 |   template<typename, typename>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1203:3: error: template specialization
  with C linkage

   1203 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1225:3: error: template with C linkage

   1225 |   template<typename _II1, typename _II2, typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1248:3: error: template with C linkage

   1248 |   template<bool _BoolType>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1263:3: error: template specialization
  with C linkage

   1263 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1281:3: error: template with C linkage

   1281 |   template<typename _II1, typename _II2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1306:3: error: template with C linkage

   1306 |   template<typename _ForwardIterator, typename _Tp, typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1345:3: error: template with C linkage

   1345 |   template<typename _ForwardIterator, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1368:3: error: conflicting declaration
  of C function 'constexpr unsigned int std::__lg(unsigned int)'

   1368 |   __lg(unsigned __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1364:3: note: previous declaration
  'constexpr int std::__lg(int)'

   1364 |   __lg(int __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1372:3: error: conflicting declaration
  of C function 'constexpr long int std::__lg(long int)'

   1372 |   __lg(long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1368:3: note: previous declaration
  'constexpr unsigned int std::__lg(unsigned int)'

   1368 |   __lg(unsigned __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1372:3: error: conflicting declaration
  of C function 'constexpr long int std::__lg(long int)'

   1372 |   __lg(long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1364:3: note: previous declaration
  'constexpr int std::__lg(int)'

   1364 |   __lg(int __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1376:3: error: conflicting declaration
  of C function 'constexpr long unsigned int std::__lg(long unsigned int)'

   1376 |   __lg(unsigned long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1372:3: note: previous declaration
  'constexpr long int std::__lg(long int)'

   1372 |   __lg(long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1376:3: error: conflicting declaration
  of C function 'constexpr long unsigned int std::__lg(long unsigned int)'

   1376 |   __lg(unsigned long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1368:3: note: previous declaration
  'constexpr unsigned int std::__lg(unsigned int)'

   1368 |   __lg(unsigned __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1376:3: error: conflicting declaration
  of C function 'constexpr long unsigned int std::__lg(long unsigned int)'

   1376 |   __lg(unsigned long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1364:3: note: previous declaration
  'constexpr int std::__lg(int)'

   1364 |   __lg(int __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1380:3: error: conflicting declaration
  of C function 'constexpr long long int std::__lg(long long int)'

   1380 |   __lg(long long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1376:3: note: previous declaration
  'constexpr long unsigned int std::__lg(long unsigned int)'

   1376 |   __lg(unsigned long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1380:3: error: conflicting declaration
  of C function 'constexpr long long int std::__lg(long long int)'

   1380 |   __lg(long long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1372:3: note: previous declaration
  'constexpr long int std::__lg(long int)'

   1372 |   __lg(long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1380:3: error: conflicting declaration
  of C function 'constexpr long long int std::__lg(long long int)'

   1380 |   __lg(long long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1368:3: note: previous declaration
  'constexpr unsigned int std::__lg(unsigned int)'

   1368 |   __lg(unsigned __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1380:3: error: conflicting declaration
  of C function 'constexpr long long int std::__lg(long long int)'

   1380 |   __lg(long long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1364:3: note: previous declaration
  'constexpr int std::__lg(int)'

   1364 |   __lg(int __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1384:3: error: conflicting declaration
  of C function 'constexpr long long unsigned int std::__lg(long long
  unsigned int)'

   1384 |   __lg(unsigned long long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1380:3: note: previous declaration
  'constexpr long long int std::__lg(long long int)'

   1380 |   __lg(long long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1384:3: error: conflicting declaration
  of C function 'constexpr long long unsigned int std::__lg(long long
  unsigned int)'

   1384 |   __lg(unsigned long long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1376:3: note: previous declaration
  'constexpr long unsigned int std::__lg(long unsigned int)'

   1376 |   __lg(unsigned long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1384:3: error: conflicting declaration
  of C function 'constexpr long long unsigned int std::__lg(long long
  unsigned int)'

   1384 |   __lg(unsigned long long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1372:3: note: previous declaration
  'constexpr long int std::__lg(long int)'

   1372 |   __lg(long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1384:3: error: conflicting declaration
  of C function 'constexpr long long unsigned int std::__lg(long long
  unsigned int)'

   1384 |   __lg(unsigned long long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1368:3: note: previous declaration
  'constexpr unsigned int std::__lg(unsigned int)'

   1368 |   __lg(unsigned __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1384:3: error: conflicting declaration
  of C function 'constexpr long long unsigned int std::__lg(long long
  unsigned int)'

   1384 |   __lg(unsigned long long __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1364:3: note: previous declaration
  'constexpr int std::__lg(int)'

   1364 |   __lg(int __n)
        |   ^~~~

  /usr/include/g++/bits/stl_algobase.h:1401:3: error: template with C linkage

   1401 |   template<typename _II1, typename _II2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1432:3: error: template with C linkage

   1432 |   template<typename _IIter1, typename _IIter2, typename _BinaryPredicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1451:3: error: template with C linkage

   1451 |   template<typename _II1, typename _II2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1477:3: error: template with C linkage

   1477 |   template<typename _II1, typename _II2, typename _BinaryPredicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1522:3: error: template with C linkage

   1522 |   template<typename _II1, typename _II2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1555:3: error: template with C linkage

   1555 |   template<typename _IIter1, typename _IIter2, typename _BinaryPredicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1587:3: error: template with C linkage

   1587 |   template<typename _II1, typename _II2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1624:3: error: template with C linkage

   1624 |   template<typename _II1, typename _II2, typename _Compare>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1737:3: error: template with C linkage

   1737 |   template<typename _InputIterator1, typename _InputIterator2,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1765:3: error: template with C linkage

   1765 |   template<typename _InputIterator1, typename _InputIterator2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1799:3: error: template with C linkage

   1799 |   template<typename _InputIterator1, typename _InputIterator2,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1817:3: error: template with C linkage

   1817 |   template<typename _InputIterator1, typename _InputIterator2,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1848:3: error: template with C linkage

   1848 |   template<typename _InputIterator1, typename _InputIterator2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1884:3: error: template with C linkage

   1884 |   template<typename _InputIterator1, typename _InputIterator2,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1906:3: error: template with C linkage

   1906 |   template<typename _InputIterator, typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1918:3: error: template with C linkage

   1918 |   template<typename _RandomAccessIterator, typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1969:3: error: template with C linkage

   1969 |   template<typename _Iterator, typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1978:3: error: template with C linkage

   1978 |   template<typename _InputIterator, typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:1991:3: error: template with C linkage

   1991 |   template<typename _ForwardIterator1, typename _ForwardIterator2,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/char_traits.h:39,

                   from /usr/include/g++/ios:40,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_algobase.h:2041:3: error: template with C linkage

   2041 |   template<typename _ForwardIterator1, typename _ForwardIterator2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:64:3: error: template with C linkage

     64 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:89:3: error: template with C linkage

     89 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:152:3: error: template with C linkage

    152 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:165:3: error: template with C linkage

    165 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:176:3: error: template with C linkage

    176 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:187:3: error: template with C linkage

    187 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:237:3: error: template with C linkage

    237 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:248:3: error: template with C linkage

    248 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:337:3: error: template with C linkage

    337 |   template<class _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:343:3: error: template specialization
  with C linkage

    343 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:478:3: error: template specialization
  with C linkage

    478 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:733:3: error: template specialization
  with C linkage

    733 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:40,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/char_traits.h:847:3: error: template specialization
  with C linkage

    847 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:57:3: error: template with C linkage

     57 |   template<typename _Facet>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:61:3: error: template with C linkage

     61 |   template<typename _Facet>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:66:3: error: template with C linkage

     66 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:70:3: error: template with C linkage

     70 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:74:3: error: template with C linkage

     74 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:78:3: error: template with C linkage

     78 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:82:3: error: template with C linkage

     82 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:86:3: error: template with C linkage

     86 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:90:3: error: template with C linkage

     90 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:94:3: error: template with C linkage

     94 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:98:3: error: template with C linkage

     98 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:102:3: error: template with C linkage

    102 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:106:3: error: template with C linkage

    106 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:111:3: error: template with C linkage

    111 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:116:3: error: template with C linkage

    116 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:120:3: error: template with C linkage

    120 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:126:3: error: template with C linkage

    126 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:128:3: error: template specialization
  with C linkage

    128 |   template<> class ctype<char>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:130:3: error: template specialization
  with C linkage

    130 |   template<> class ctype<wchar_t>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:132:3: error: template with C linkage

    132 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:137:3: error: template with C linkage

    137 |   template<typename _InternT, typename _ExternT, typename _StateT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:139:3: error: template specialization
  with C linkage

    139 |   template<> class codecvt<char, char, mbstate_t>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:141:3: error: template specialization
  with C linkage

    141 |   template<> class codecvt<wchar_t, char, mbstate_t>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:144:3: error: template specialization
  with C linkage

    144 |   template<> class codecvt<char16_t, char, mbstate_t>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:145:3: error: template specialization
  with C linkage

    145 |   template<> class codecvt<char32_t, char, mbstate_t>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:151:3: error: template with C linkage

    151 |   template<typename _InternT, typename _ExternT, typename _StateT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:156:3: error: template with C linkage

    156 |   template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:158:3: error: template with C linkage

    158 |   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:162:3: error: template with C linkage

    162 |   template<typename _CharT> class numpunct;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:163:3: error: template with C linkage

    163 |   template<typename _CharT> class numpunct_byname;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:168:3: error: template with C linkage

    168 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:170:3: error: template with C linkage

    170 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:177:3: error: template with C linkage

    177 |   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:179:3: error: template with C linkage

    179 |   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:182:3: error: template with C linkage

    182 |   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:184:3: error: template with C linkage

    184 |   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:190:3: error: template with C linkage

    190 |   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:192:3: error: template with C linkage

    192 |   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:196:3: error: template with C linkage

    196 |   template<typename _CharT, bool _Intl = false>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:198:3: error: template with C linkage

    198 |   template<typename _CharT, bool _Intl = false>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:205:3: error: template with C linkage

    205 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:41,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/localefwd.h:207:3: error: template with C linkage

    207 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/c++allocator.h:33,

                   from /usr/include/g++/bits/allocator.h:46,
                   from /usr/include/g++/string:41,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/new_allocator.h:54:3: error: template with C linkage

     54 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/allocator.h:46,

                   from /usr/include/g++/string:41,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/c++allocator.h:47:3: error: template with C linkage

     47 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:71:3: error: template specialization with
  C linkage

     71 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:121:3: error: template with C linkage

    121 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:212:3: error: template with C linkage

    212 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:219:3: error: template with C linkage

    219 |   template<typename _T1, typename _T2>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:228:3: error: template with C linkage

    228 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:236:3: error: template with C linkage

    236 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:244:3: error: template with C linkage

    244 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:265:3: error: template with C linkage

    265 |   template<typename _Alloc, bool = __is_empty(_Alloc)>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:269:3: error: template with C linkage

    269 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:282:3: error: template with C linkage

    282 |   template<typename _Alloc, bool = __is_empty(_Alloc)>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:290:3: error: template with C linkage

    290 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:299:3: error: template with C linkage

    299 |   template<typename _Tp, bool
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:41,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/allocator.h:305:3: error: template with C linkage

    305 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:44,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream_insert.h:42:3: error: template with C linkage

     42 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:44,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream_insert.h:55:3: error: template with C linkage

     55 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:44,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream_insert.h:74:3: error: template with C linkage

     74 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:104:3: error: template with C linkage

    104 |   template<typename _Arg, typename _Result>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:117:3: error: template with C linkage

    117 |   template<typename _Arg1, typename _Arg2, typename _Result>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:146:3: error: template with C linkage

    146 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:149:3: error: template with C linkage

    149 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:152:3: error: template with C linkage

    152 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:155:3: error: template with C linkage

    155 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:158:3: error: template with C linkage

    158 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:161:3: error: template with C linkage

    161 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:166:3: error: template with C linkage

    166 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:176:3: error: template with C linkage

    176 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:186:3: error: template with C linkage

    186 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:196:3: error: template with C linkage

    196 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:206:3: error: template with C linkage

    206 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:216:3: error: template with C linkage

    216 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:229:3: error: template specialization
  with C linkage

    229 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:244:3: error: template specialization
  with C linkage

    244 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:259:3: error: template specialization
  with C linkage

    259 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:274:3: error: template specialization
  with C linkage

    274 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:289:3: error: template specialization
  with C linkage

    289 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:304:3: error: template specialization
  with C linkage

    304 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:330:3: error: template with C linkage

    330 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:333:3: error: template with C linkage

    333 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:336:3: error: template with C linkage

    336 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:339:3: error: template with C linkage

    339 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:342:3: error: template with C linkage

    342 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:345:3: error: template with C linkage

    345 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:350:3: error: template with C linkage

    350 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:360:3: error: template with C linkage

    360 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:370:3: error: template with C linkage

    370 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:380:3: error: template with C linkage

    380 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:390:3: error: template with C linkage

    390 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:400:3: error: template with C linkage

    400 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:410:3: error: template with C linkage

    410 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:429:3: error: template with C linkage

    429 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:448:3: error: template with C linkage

    448 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:467:3: error: template with C linkage

    467 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:487:3: error: template specialization
  with C linkage

    487 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:501:3: error: template specialization
  with C linkage

    501 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:515:3: error: template specialization
  with C linkage

    515 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:577:3: error: template specialization
  with C linkage

    577 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:639:3: error: template specialization
  with C linkage

    639 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:701:3: error: template specialization
  with C linkage

    701 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:774:3: error: template with C linkage

    774 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:777:3: error: template with C linkage

    777 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:780:3: error: template with C linkage

    780 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:785:3: error: template with C linkage

    785 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:795:3: error: template with C linkage

    795 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:805:3: error: template with C linkage

    805 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:816:3: error: template specialization
  with C linkage

    816 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:831:3: error: template specialization
  with C linkage

    831 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:846:3: error: template specialization
  with C linkage

    846 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:863:3: error: template with C linkage

    863 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:866:3: error: template with C linkage

    866 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:869:3: error: template with C linkage

    869 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:872:3: error: template with C linkage

    872 |   template<typename _Tp = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:878:3: error: template with C linkage

    878 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:887:3: error: template with C linkage

    887 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:896:3: error: template with C linkage

    896 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:905:3: error: template with C linkage

    905 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:915:3: error: template specialization
  with C linkage

    915 |   template <>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:929:3: error: template specialization
  with C linkage

    929 |   template <>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:943:3: error: template specialization
  with C linkage

    943 |   template <>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:957:3: error: template specialization
  with C linkage

    957 |   template <>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1002:3: error: template with C linkage

   1002 |   template<typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1021:3: error: template with C linkage

   1021 |   template<typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1028:3: error: template with C linkage

   1028 |   template<typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1049:3: error: template with C linkage

   1049 |   template<typename _Predicate>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1079:3: error: template with C linkage

   1079 |   template<typename _Arg, typename _Result>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1098:3: error: template with C linkage

   1098 |   template<typename _Arg, typename _Result>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1104:3: error: template with C linkage

   1104 |   template<typename _Arg1, typename _Arg2, typename _Result>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1124:3: error: template with C linkage

   1124 |   template<typename _Arg1, typename _Arg2, typename _Result>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1130:3: error: template with C linkage

   1130 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1144:3: error: template with C linkage

   1144 |   template<typename _Tp> struct _Identity<const _Tp> : _Identity<_Tp> { };
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1146:3: error: template with C linkage

   1146 |   template<typename _Pair>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1171:3: error: template with C linkage

   1171 |   template<typename _Pair>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1202:3: error: template with C linkage

   1202 |   template<typename _Ret, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1220:3: error: template with C linkage

   1220 |   template<typename _Ret, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1238:3: error: template with C linkage

   1238 |   template<typename _Ret, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1256:3: error: template with C linkage

   1256 |   template<typename _Ret, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1274:3: error: template with C linkage

   1274 |   template<typename _Ret, typename _Tp, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1292:3: error: template with C linkage

   1292 |   template<typename _Ret, typename _Tp, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1310:3: error: template with C linkage

   1310 |   template<typename _Ret, typename _Tp, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1328:3: error: template with C linkage

   1328 |   template<typename _Ret, typename _Tp, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1346:3: error: template with C linkage

   1346 |   template<typename _Ret, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1351:3: error: template with C linkage

   1351 |   template<typename _Ret, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1356:3: error: template with C linkage

   1356 |   template<typename _Ret, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1361:3: error: template with C linkage

   1361 |   template<typename _Ret, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1366:3: error: template with C linkage

   1366 |   template<typename _Ret, typename _Tp, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1371:3: error: template with C linkage

   1371 |   template<typename _Ret, typename _Tp, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1376:3: error: template with C linkage

   1376 |   template<typename _Ret, typename _Tp, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:48,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_function.h:1381:3: error: template with C linkage

   1381 |   template<typename _Ret, typename _Tp, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_function.h:1392,

                   from /usr/include/g++/string:48,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/backward/binders.h:107:3: error: template with C linkage

    107 |   template<typename _Operation>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_function.h:1392,

                   from /usr/include/g++/string:48,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/backward/binders.h:133:3: error: template with C linkage

    133 |   template<typename _Operation, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_function.h:1392,

                   from /usr/include/g++/string:48,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/backward/binders.h:142:3: error: template with C linkage

    142 |   template<typename _Operation>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/stl_function.h:1392,

                   from /usr/include/g++/string:48,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/backward/binders.h:168:3: error: template with C linkage

    168 |   template<typename _Operation, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/range_access.h:36,

                   from /usr/include/g++/string:54,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/initializer_list:46:3: error: template with C linkage

     46 |   template<class _E>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/range_access.h:36,

                   from /usr/include/g++/string:54,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/initializer_list:88:3: error: template with C linkage

     88 |   template<class _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/range_access.h:36,

                   from /usr/include/g++/string:54,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/initializer_list:99:3: error: template with C linkage

     99 |   template<class _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:49:3: error: template with C linkage

     49 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:59:3: error: template with C linkage

     59 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:69:3: error: template with C linkage

     69 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:79:3: error: template with C linkage

     79 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:88:3: error: template with C linkage

     88 |   template<typename _Tp, size_t _Nm>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:98:3: error: template with C linkage

     98 |   template<typename _Tp, size_t _Nm>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:105:3: error: template with C linkage

    105 |   template<typename _Tp> class valarray;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:107:3: error: template with C linkage

    107 |   template<typename _Tp> _Tp* begin(valarray<_Tp>&) noexcept;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:108:3: error: template with C linkage

    108 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:109:3: error: template with C linkage

    109 |   template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:110:3: error: template with C linkage

    110 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:117:3: error: template with C linkage

    117 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:128:3: error: template with C linkage

    128 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:139:3: error: template with C linkage

    139 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:149:3: error: template with C linkage

    149 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:159:3: error: template with C linkage

    159 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:169:3: error: template with C linkage

    169 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:179:3: error: template with C linkage

    179 |   template<typename _Tp, size_t _Nm>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:189:3: error: template with C linkage

    189 |   template<typename _Tp, size_t _Nm>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:199:3: error: template with C linkage

    199 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:209:3: error: template with C linkage

    209 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:219:3: error: template with C linkage

    219 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:54,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/range_access.h:229:3: error: template with C linkage

    229 |   template<typename _Container>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/alloc_traits.h:33,

                   from /usr/include/g++/ext/alloc_traits.h:34,
                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_construct.h:106:3: error: template with C linkage

    106 |   template<typename _Tp, typename... _Args>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/alloc_traits.h:33,

                   from /usr/include/g++/ext/alloc_traits.h:34,
                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_construct.h:121:3: error: template with C linkage

    121 |   template<typename _T1>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/alloc_traits.h:33,

                   from /usr/include/g++/ext/alloc_traits.h:34,
                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_construct.h:126:3: error: template with C linkage

    126 |   template<typename _ForwardIterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/alloc_traits.h:33,

                   from /usr/include/g++/ext/alloc_traits.h:34,
                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_construct.h:133:3: error: template with C linkage

    133 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/alloc_traits.h:33,

                   from /usr/include/g++/ext/alloc_traits.h:34,
                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_construct.h:144:3: error: template with C linkage

    144 |   template<bool>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/alloc_traits.h:33,

                   from /usr/include/g++/ext/alloc_traits.h:34,
                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_construct.h:156:3: error: template specialization
  with C linkage

    156 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/alloc_traits.h:33,

                   from /usr/include/g++/ext/alloc_traits.h:34,
                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_construct.h:169:3: error: template with C linkage

    169 |   template<typename _ForwardIterator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/alloc_traits.h:33,

                   from /usr/include/g++/ext/alloc_traits.h:34,
                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_construct.h:188:3: error: template with C linkage

    188 |   template<bool>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/alloc_traits.h:33,

                   from /usr/include/g++/ext/alloc_traits.h:34,
                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_construct.h:201:3: error: template specialization
  with C linkage

    201 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/alloc_traits.h:33,

                   from /usr/include/g++/ext/alloc_traits.h:34,
                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/stl_construct.h:218:3: error: template with C linkage

    218 |   template<typename _ForwardIterator, typename _Size>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:50:5: error: template with C linkage

     50 |     template<typename _Tp, typename _Up, typename = void>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:53:5: error: template with C linkage

     53 |     template<typename _Tp, typename _Up>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:59:5: error: template with C linkage

     59 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:61:5: error: template with C linkage

     61 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:63:5: error: template with C linkage

     63 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:65:5: error: template with C linkage

     65 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:67:5: error: template with C linkage

     67 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:69:5: error: template with C linkage

     69 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:71:5: error: template with C linkage

     71 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:73:5: error: template with C linkage

     73 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:77:3: error: template with C linkage

     77 |   template<typename _Alloc, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:85:3: error: template with C linkage

     85 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:406:3: error: template with C linkage

    406 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:563:3: error: template specialization
  with C linkage

    563 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:667:3: error: template with C linkage

    667 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:672:3: error: template with C linkage

    672 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:678:3: error: template with C linkage

    678 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:692:3: error: template with C linkage

    692 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:701:3: error: template with C linkage

    701 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:705:3: error: template with C linkage

    705 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:710:3: error: template with C linkage

    710 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:725:3: error: template with C linkage

    725 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:732:3: error: template with C linkage

    732 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:737:3: error: template with C linkage

    737 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:754:3: error: template with C linkage

    754 |   template<typename _Alloc, typename _Tp,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:761:3: error: template with C linkage

    761 |   template<typename _Alloc, typename _Tp, typename _ValueT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:772:3: error: template with C linkage

    772 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:779:3: error: template with C linkage

    779 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:787:3: error: template with C linkage

    787 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:793:3: error: template with C linkage

    793 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:799:3: error: template with C linkage

    799 |   template<typename _Alloc, typename = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:802:3: error: template with C linkage

    802 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:808:3: error: template with C linkage

    808 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:812:3: error: template with C linkage

    812 |   template<typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:823:3: error: template with C linkage

    823 |   template<typename _ForwardIterator, typename _Allocator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ext/alloc_traits.h:34,

                   from /usr/include/g++/bits/basic_string.h:40,
                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/alloc_traits.h:837:3: error: template with C linkage

    837 |   template<typename _ForwardIterator, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:40,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/alloc_traits.h:47:1: error: template with C linkage

     47 | template<typename _Alloc, typename = typename _Alloc::value_type>
        | ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:84:3: error: template with C linkage

     84 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6042:3: error: template with C linkage

   6042 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6058:3: error: template with C linkage

   6058 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6069:3: error: template with C linkage

   6069 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6079:3: error: template with C linkage

   6079 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6095:3: error: template with C linkage

   6095 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6107:3: error: template with C linkage

   6107 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6113:3: error: template with C linkage

   6113 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6119:3: error: template with C linkage

   6119 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6141:3: error: template with C linkage

   6141 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6147:3: error: template with C linkage

   6147 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6153:3: error: template with C linkage

   6153 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6159:3: error: template with C linkage

   6159 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6173:3: error: template with C linkage

   6173 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6180:3: error: template with C linkage

   6180 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6195:3: error: template with C linkage

   6195 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6236:3: error: template with C linkage

   6236 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6249:3: error: template with C linkage

   6249 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6262:3: error: template with C linkage

   6262 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6274:3: error: template with C linkage

   6274 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6287:3: error: template with C linkage

   6287 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6300:3: error: template with C linkage

   6300 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6312:3: error: template with C linkage

   6312 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6325:3: error: template with C linkage

   6325 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6338:3: error: template with C linkage

   6338 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6350:3: error: template with C linkage

   6350 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6363:3: error: template with C linkage

   6363 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6376:3: error: template with C linkage

   6376 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6388:3: error: template with C linkage

   6388 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6401:3: error: template with C linkage

   6401 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6414:3: error: template with C linkage

   6414 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6426:3: error: template with C linkage

   6426 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6440:3: error: template with C linkage

   6440 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6460:3: error: template with C linkage

   6460 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6465:3: error: template specialization
  with C linkage

   6465 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6478:3: error: template with C linkage

   6478 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6501:3: error: template with C linkage

   6501 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6518:3: error: template with C linkage

   6518 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6526:3: error: template with C linkage

   6526 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6533:3: error: template with C linkage

   6533 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6540:3: error: template specialization
  with C linkage

   6540 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6546:3: error: template specialization
  with C linkage

   6546 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6557,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/string_conversions.h:51:3: error: template with C
  linkage

     51 |   template<typename _TRet, typename _Ret = _TRet, typename _CharT,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6557,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ext/string_conversions.h:97:3: error: template with C
  linkage

     97 |   template<typename _String, typename _CharT = typename _String::value_type>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6558,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/charconv.h:45:3: error: template with C linkage

     45 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6558,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/charconv.h:70:3: error: template with C linkage

     70 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6620:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(unsigned int)'

   6620 |   to_string(unsigned __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6609:3: note: previous declaration
  'std::string std::__cxx11::to_string(int)'

   6609 |   to_string(int __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6628:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long int)'

   6628 |   to_string(long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6620:3: note: previous declaration
  'std::string std::__cxx11::to_string(unsigned int)'

   6620 |   to_string(unsigned __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6628:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long int)'

   6628 |   to_string(long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6609:3: note: previous declaration
  'std::string std::__cxx11::to_string(int)'

   6609 |   to_string(int __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6639:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long unsigned int)'

   6639 |   to_string(unsigned long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6628:3: note: previous declaration
  'std::string std::__cxx11::to_string(long int)'

   6628 |   to_string(long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6639:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long unsigned int)'

   6639 |   to_string(unsigned long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6620:3: note: previous declaration
  'std::string std::__cxx11::to_string(unsigned int)'

   6620 |   to_string(unsigned __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6639:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long unsigned int)'

   6639 |   to_string(unsigned long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6609:3: note: previous declaration
  'std::string std::__cxx11::to_string(int)'

   6609 |   to_string(int __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6647:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long long int)'

   6647 |   to_string(long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6639:3: note: previous declaration
  'std::string std::__cxx11::to_string(long unsigned int)'

   6639 |   to_string(unsigned long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6647:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long long int)'

   6647 |   to_string(long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6628:3: note: previous declaration
  'std::string std::__cxx11::to_string(long int)'

   6628 |   to_string(long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6647:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long long int)'

   6647 |   to_string(long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6620:3: note: previous declaration
  'std::string std::__cxx11::to_string(unsigned int)'

   6620 |   to_string(unsigned __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6647:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long long int)'

   6647 |   to_string(long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6609:3: note: previous declaration
  'std::string std::__cxx11::to_string(int)'

   6609 |   to_string(int __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6659:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long long unsigned int)'

   6659 |   to_string(unsigned long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6647:3: note: previous declaration
  'std::string std::__cxx11::to_string(long long int)'

   6647 |   to_string(long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6659:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long long unsigned int)'

   6659 |   to_string(unsigned long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6639:3: note: previous declaration
  'std::string std::__cxx11::to_string(long unsigned int)'

   6639 |   to_string(unsigned long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6659:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long long unsigned int)'

   6659 |   to_string(unsigned long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6628:3: note: previous declaration
  'std::string std::__cxx11::to_string(long int)'

   6628 |   to_string(long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6659:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long long unsigned int)'

   6659 |   to_string(unsigned long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6620:3: note: previous declaration
  'std::string std::__cxx11::to_string(unsigned int)'

   6620 |   to_string(unsigned __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6659:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long long unsigned int)'

   6659 |   to_string(unsigned long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6609:3: note: previous declaration
  'std::string std::__cxx11::to_string(int)'

   6609 |   to_string(int __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6670:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(float)'

   6670 |   to_string(float __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6659:3: note: previous declaration
  'std::string std::__cxx11::to_string(long long unsigned int)'

   6659 |   to_string(unsigned long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6670:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(float)'

   6670 |   to_string(float __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6647:3: note: previous declaration
  'std::string std::__cxx11::to_string(long long int)'

   6647 |   to_string(long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6670:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(float)'

   6670 |   to_string(float __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6639:3: note: previous declaration
  'std::string std::__cxx11::to_string(long unsigned int)'

   6639 |   to_string(unsigned long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6670:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(float)'

   6670 |   to_string(float __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6628:3: note: previous declaration
  'std::string std::__cxx11::to_string(long int)'

   6628 |   to_string(long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6670:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(float)'

   6670 |   to_string(float __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6620:3: note: previous declaration
  'std::string std::__cxx11::to_string(unsigned int)'

   6620 |   to_string(unsigned __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6670:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(float)'

   6670 |   to_string(float __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6609:3: note: previous declaration
  'std::string std::__cxx11::to_string(int)'

   6609 |   to_string(int __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6679:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(double)'

   6679 |   to_string(double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6670:3: note: previous declaration
  'std::string std::__cxx11::to_string(float)'

   6670 |   to_string(float __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6679:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(double)'

   6679 |   to_string(double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6659:3: note: previous declaration
  'std::string std::__cxx11::to_string(long long unsigned int)'

   6659 |   to_string(unsigned long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6679:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(double)'

   6679 |   to_string(double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6647:3: note: previous declaration
  'std::string std::__cxx11::to_string(long long int)'

   6647 |   to_string(long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6679:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(double)'

   6679 |   to_string(double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6639:3: note: previous declaration
  'std::string std::__cxx11::to_string(long unsigned int)'

   6639 |   to_string(unsigned long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6679:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(double)'

   6679 |   to_string(double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6628:3: note: previous declaration
  'std::string std::__cxx11::to_string(long int)'

   6628 |   to_string(long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6679:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(double)'

   6679 |   to_string(double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6620:3: note: previous declaration
  'std::string std::__cxx11::to_string(unsigned int)'

   6620 |   to_string(unsigned __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6679:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(double)'

   6679 |   to_string(double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6609:3: note: previous declaration
  'std::string std::__cxx11::to_string(int)'

   6609 |   to_string(int __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6688:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long double)'

   6688 |   to_string(long double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6679:3: note: previous declaration
  'std::string std::__cxx11::to_string(double)'

   6679 |   to_string(double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6688:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long double)'

   6688 |   to_string(long double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6670:3: note: previous declaration
  'std::string std::__cxx11::to_string(float)'

   6670 |   to_string(float __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6688:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long double)'

   6688 |   to_string(long double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6659:3: note: previous declaration
  'std::string std::__cxx11::to_string(long long unsigned int)'

   6659 |   to_string(unsigned long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6688:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long double)'

   6688 |   to_string(long double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6647:3: note: previous declaration
  'std::string std::__cxx11::to_string(long long int)'

   6647 |   to_string(long long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6688:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long double)'

   6688 |   to_string(long double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6639:3: note: previous declaration
  'std::string std::__cxx11::to_string(long unsigned int)'

   6639 |   to_string(unsigned long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6688:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long double)'

   6688 |   to_string(long double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6628:3: note: previous declaration
  'std::string std::__cxx11::to_string(long int)'

   6628 |   to_string(long __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6688:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long double)'

   6688 |   to_string(long double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6620:3: note: previous declaration
  'std::string std::__cxx11::to_string(unsigned int)'

   6620 |   to_string(unsigned __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6688:3: error: conflicting declaration
  of C function 'std::string std::__cxx11::to_string(long double)'

   6688 |   to_string(long double __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6609:3: note: previous declaration
  'std::string std::__cxx11::to_string(int)'

   6609 |   to_string(int __val)
        |   ^~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6699:3: error: conflicting declaration
  of C function 'int std::__cxx11::stoi(const wstring&, std::size_t*, int)'

   6699 |   stoi(const wstring& __str, size_t* __idx = 0, int __base = 10)
        |   ^~~~

  /usr/include/g++/bits/basic_string.h:6568:3: note: previous declaration
  'int std::__cxx11::stoi(const string&, std::size_t*, int)'

   6568 |   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
        |   ^~~~

  /usr/include/g++/bits/basic_string.h:6704:3: error: conflicting declaration
  of C function 'long int std::__cxx11::stol(const wstring&, std::size_t*,
  int)'

   6704 |   stol(const wstring& __str, size_t* __idx = 0, int __base = 10)
        |   ^~~~

  /usr/include/g++/bits/basic_string.h:6573:3: note: previous declaration
  'long int std::__cxx11::stol(const string&, std::size_t*, int)'

   6573 |   stol(const string& __str, size_t* __idx = 0, int __base = 10)
        |   ^~~~

  /usr/include/g++/bits/basic_string.h:6709:3: error: conflicting declaration
  of C function 'long unsigned int std::__cxx11::stoul(const wstring&,
  std::size_t*, int)'

   6709 |   stoul(const wstring& __str, size_t* __idx = 0, int __base = 10)
        |   ^~~~~

  /usr/include/g++/bits/basic_string.h:6578:3: note: previous declaration
  'long unsigned int std::__cxx11::stoul(const string&, std::size_t*, int)'

   6578 |   stoul(const string& __str, size_t* __idx = 0, int __base = 10)
        |   ^~~~~

  /usr/include/g++/bits/basic_string.h:6714:3: error: conflicting declaration
  of C function 'long long int std::__cxx11::stoll(const wstring&,
  std::size_t*, int)'

   6714 |   stoll(const wstring& __str, size_t* __idx = 0, int __base = 10)
        |   ^~~~~

  /usr/include/g++/bits/basic_string.h:6583:3: note: previous declaration
  'long long int std::__cxx11::stoll(const string&, std::size_t*, int)'

   6583 |   stoll(const string& __str, size_t* __idx = 0, int __base = 10)
        |   ^~~~~

  /usr/include/g++/bits/basic_string.h:6719:3: error: conflicting declaration
  of C function 'long long unsigned int std::__cxx11::stoull(const wstring&,
  std::size_t*, int)'

   6719 |   stoull(const wstring& __str, size_t* __idx = 0, int __base = 10)
        |   ^~~~~~

  /usr/include/g++/bits/basic_string.h:6588:3: note: previous declaration
  'long long unsigned int std::__cxx11::stoull(const string&, std::size_t*,
  int)'

   6588 |   stoull(const string& __str, size_t* __idx = 0, int __base = 10)
        |   ^~~~~~

  /usr/include/g++/bits/basic_string.h:6725:3: error: conflicting declaration
  of C function 'float std::__cxx11::stof(const wstring&, std::size_t*)'

   6725 |   stof(const wstring& __str, size_t* __idx = 0)
        |   ^~~~

  /usr/include/g++/bits/basic_string.h:6594:3: note: previous declaration
  'float std::__cxx11::stof(const string&, std::size_t*)'

   6594 |   stof(const string& __str, size_t* __idx = 0)
        |   ^~~~

  /usr/include/g++/bits/basic_string.h:6729:3: error: conflicting declaration
  of C function 'double std::__cxx11::stod(const wstring&, std::size_t*)'

   6729 |   stod(const wstring& __str, size_t* __idx = 0)
        |   ^~~~

  /usr/include/g++/bits/basic_string.h:6598:3: note: previous declaration
  'double std::__cxx11::stod(const string&, std::size_t*)'

   6598 |   stod(const string& __str, size_t* __idx = 0)
        |   ^~~~

  /usr/include/g++/bits/basic_string.h:6733:3: error: conflicting declaration
  of C function 'long double std::__cxx11::stold(const wstring&,
  std::size_t*)'

   6733 |   stold(const wstring& __str, size_t* __idx = 0)
        |   ^~~~~

  /usr/include/g++/bits/basic_string.h:6602:3: note: previous declaration
  'long double std::__cxx11::stold(const string&, std::size_t*)'

   6602 |   stold(const string& __str, size_t* __idx = 0)
        |   ^~~~~

  /usr/include/g++/bits/basic_string.h:6744:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(unsigned int)'

   6744 |   to_wstring(unsigned __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6739:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(int)'

   6739 |   to_wstring(int __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6750:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long int)'

   6750 |   to_wstring(long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6744:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(unsigned int)'

   6744 |   to_wstring(unsigned __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6750:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long int)'

   6750 |   to_wstring(long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6739:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(int)'

   6739 |   to_wstring(int __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6755:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long unsigned int)'

   6755 |   to_wstring(unsigned long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6750:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long int)'

   6750 |   to_wstring(long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6755:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long unsigned int)'

   6755 |   to_wstring(unsigned long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6744:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(unsigned int)'

   6744 |   to_wstring(unsigned __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6755:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long unsigned int)'

   6755 |   to_wstring(unsigned long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6739:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(int)'

   6739 |   to_wstring(int __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6761:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long long int)'

   6761 |   to_wstring(long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6755:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long unsigned int)'

   6755 |   to_wstring(unsigned long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6761:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long long int)'

   6761 |   to_wstring(long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6750:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long int)'

   6750 |   to_wstring(long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6761:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long long int)'

   6761 |   to_wstring(long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6744:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(unsigned int)'

   6744 |   to_wstring(unsigned __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6761:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long long int)'

   6761 |   to_wstring(long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6739:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(int)'

   6739 |   to_wstring(int __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6767:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long long unsigned
  int)'

   6767 |   to_wstring(unsigned long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6761:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long long int)'

   6761 |   to_wstring(long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6767:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long long unsigned
  int)'

   6767 |   to_wstring(unsigned long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6755:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long unsigned int)'

   6755 |   to_wstring(unsigned long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6767:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long long unsigned
  int)'

   6767 |   to_wstring(unsigned long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6750:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long int)'

   6750 |   to_wstring(long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6767:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long long unsigned
  int)'

   6767 |   to_wstring(unsigned long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6744:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(unsigned int)'

   6744 |   to_wstring(unsigned __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6767:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long long unsigned
  int)'

   6767 |   to_wstring(unsigned long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6739:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(int)'

   6739 |   to_wstring(int __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6773:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(float)'

   6773 |   to_wstring(float __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6767:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long long unsigned int)'

   6767 |   to_wstring(unsigned long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6773:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(float)'

   6773 |   to_wstring(float __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6761:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long long int)'

   6761 |   to_wstring(long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6773:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(float)'

   6773 |   to_wstring(float __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6755:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long unsigned int)'

   6755 |   to_wstring(unsigned long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6773:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(float)'

   6773 |   to_wstring(float __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6750:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long int)'

   6750 |   to_wstring(long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6773:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(float)'

   6773 |   to_wstring(float __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6744:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(unsigned int)'

   6744 |   to_wstring(unsigned __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6773:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(float)'

   6773 |   to_wstring(float __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6739:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(int)'

   6739 |   to_wstring(int __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6782:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(double)'

   6782 |   to_wstring(double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6773:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(float)'

   6773 |   to_wstring(float __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6782:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(double)'

   6782 |   to_wstring(double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6767:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long long unsigned int)'

   6767 |   to_wstring(unsigned long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6782:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(double)'

   6782 |   to_wstring(double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6761:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long long int)'

   6761 |   to_wstring(long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6782:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(double)'

   6782 |   to_wstring(double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6755:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long unsigned int)'

   6755 |   to_wstring(unsigned long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6782:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(double)'

   6782 |   to_wstring(double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6750:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long int)'

   6750 |   to_wstring(long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6782:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(double)'

   6782 |   to_wstring(double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6744:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(unsigned int)'

   6744 |   to_wstring(unsigned __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6782:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(double)'

   6782 |   to_wstring(double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6739:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(int)'

   6739 |   to_wstring(int __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6791:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long double)'

   6791 |   to_wstring(long double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6782:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(double)'

   6782 |   to_wstring(double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6791:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long double)'

   6791 |   to_wstring(long double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6773:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(float)'

   6773 |   to_wstring(float __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6791:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long double)'

   6791 |   to_wstring(long double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6767:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long long unsigned int)'

   6767 |   to_wstring(unsigned long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6791:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long double)'

   6791 |   to_wstring(long double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6761:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long long int)'

   6761 |   to_wstring(long long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6791:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long double)'

   6791 |   to_wstring(long double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6755:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long unsigned int)'

   6755 |   to_wstring(unsigned long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6791:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long double)'

   6791 |   to_wstring(long double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6750:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(long int)'

   6750 |   to_wstring(long __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6791:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long double)'

   6791 |   to_wstring(long double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6744:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(unsigned int)'

   6744 |   to_wstring(unsigned __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6791:3: error: conflicting declaration
  of C function 'std::wstring std::__cxx11::to_wstring(long double)'

   6791 |   to_wstring(long double __val)
        |   ^~~~~~~~~~

  /usr/include/g++/bits/basic_string.h:6739:3: note: previous declaration
  'std::wstring std::__cxx11::to_wstring(int)'

   6739 |   to_wstring(int __val)
        |   ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:49:3: error: template with C
  linkage

     49 |   template<typename _Result, typename _Arg>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:57:3: error: template with C
  linkage

     57 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:60:3: error: template with C
  linkage

     60 |   template<typename _Tp, typename = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:70:3: error: template with C
  linkage

     70 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:77:3: error: template with C
  linkage

     77 |   template<typename _Tp, bool = is_enum<_Tp>::value>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:87:3: error: template with C
  linkage

     87 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:100:3: error: template with C
  linkage

    100 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:105:3: error: template with C
  linkage

    105 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:124:3: error: template
  specialization with C linkage

    124 |   _Cxx_hashtable_define_trivial_hash(bool)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:127:3: error: template
  specialization with C linkage

    127 |   _Cxx_hashtable_define_trivial_hash(char)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:130:3: error: template
  specialization with C linkage

    130 |   _Cxx_hashtable_define_trivial_hash(signed char)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:133:3: error: template
  specialization with C linkage

    133 |   _Cxx_hashtable_define_trivial_hash(unsigned char)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:136:3: error: template
  specialization with C linkage

    136 |   _Cxx_hashtable_define_trivial_hash(wchar_t)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:144:3: error: template
  specialization with C linkage

    144 |   _Cxx_hashtable_define_trivial_hash(char16_t)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:147:3: error: template
  specialization with C linkage

    147 |   _Cxx_hashtable_define_trivial_hash(char32_t)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:150:3: error: template
  specialization with C linkage

    150 |   _Cxx_hashtable_define_trivial_hash(short)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:153:3: error: template
  specialization with C linkage

    153 |   _Cxx_hashtable_define_trivial_hash(int)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:156:3: error: template
  specialization with C linkage

    156 |   _Cxx_hashtable_define_trivial_hash(long)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:159:3: error: template
  specialization with C linkage

    159 |   _Cxx_hashtable_define_trivial_hash(long long)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:162:3: error: template
  specialization with C linkage

    162 |   _Cxx_hashtable_define_trivial_hash(unsigned short)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:165:3: error: template
  specialization with C linkage

    165 |   _Cxx_hashtable_define_trivial_hash(unsigned int)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:168:3: error: template
  specialization with C linkage

    168 |   _Cxx_hashtable_define_trivial_hash(unsigned long)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:171:3: error: template
  specialization with C linkage

    171 |   _Cxx_hashtable_define_trivial_hash(unsigned long long)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:174:3: error: template
  specialization with C linkage

    174 |   _Cxx_hashtable_define_trivial_hash(__GLIBCXX_TYPE_INT_N_0)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:175:3: error: template
  specialization with C linkage

    175 |   _Cxx_hashtable_define_trivial_hash(__GLIBCXX_TYPE_INT_N_0 unsigned)
        |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:199:5: error: template with C
  linkage

    199 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:204:5: error: template with C
  linkage

    204 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:218:5: error: template with C
  linkage

    218 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:223:5: error: template with C
  linkage

    223 |     template<typename _Tp>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:230:3: error: template
  specialization with C linkage

    230 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:242:3: error: template
  specialization with C linkage

    242 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:254:3: error: template
  specialization with C linkage

    254 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:278:3: error: template with C
  linkage

    278 |   template<typename _Hash>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_string.h:6809,

                   from /usr/include/g++/string:55,
                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/functional_hash.h:282:3: error: template
  specialization with C linkage

    282 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6819:3: error: template specialization
  with C linkage

   6819 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6828:3: error: template specialization
  with C linkage

   6828 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6834:3: error: template specialization
  with C linkage

   6834 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6844:3: error: template specialization
  with C linkage

   6844 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6868:3: error: template specialization
  with C linkage

   6868 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6878:3: error: template specialization
  with C linkage

   6878 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6883:3: error: template specialization
  with C linkage

   6883 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6893:3: error: template specialization
  with C linkage

   6893 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6909:5: error: literal operator with C
  linkage

   6909 |     operator""s(const char* __str, size_t __len)
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6915:5: error: literal operator with C
  linkage

   6915 |     operator""s(const wchar_t* __str, size_t __len)
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6928:5: error: literal operator with C
  linkage

   6928 |     operator""s(const char16_t* __str, size_t __len)
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:55,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.h:6933:5: error: literal operator with C
  linkage

   6933 |     operator""s(const char32_t* __str, size_t __len)
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:52:3: error: template with C linkage

     52 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:56:3: error: template with C linkage

     56 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:130:3: error: template with C
  linkage

    130 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:160:3: error: template with C
  linkage

    160 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:203:3: error: template with C
  linkage

    203 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:235:3: error: template with C
  linkage

    235 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:252:3: error: template with C
  linkage

    252 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:278:3: error: template with C
  linkage

    278 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:308:3: error: template with C
  linkage

    308 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:332:3: error: template with C
  linkage

    332 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:345:3: error: template with C
  linkage

    345 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:357:3: error: template with C
  linkage

    357 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:376:3: error: template with C
  linkage

    376 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:392:3: error: template with C
  linkage

    392 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:421:3: error: template with C
  linkage

    421 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:474:3: error: template with C
  linkage

    474 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1150:3: error: template with C
  linkage

   1150 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1170:3: error: template with C
  linkage

   1170 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1188:3: error: template with C
  linkage

   1188 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1224:3: error: template with C
  linkage

   1224 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1242:3: error: template with C
  linkage

   1242 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1264:3: error: template with C
  linkage

   1264 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1281:3: error: template with C
  linkage

   1281 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1297:3: error: template with C
  linkage

   1297 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1319:3: error: template with C
  linkage

   1319 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1332:3: error: template with C
  linkage

   1332 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1343:3: error: template with C
  linkage

   1343 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1365:3: error: template with C
  linkage

   1365 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1385:3: error: template with C
  linkage

   1385 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1400:3: error: template with C
  linkage

   1400 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1418:3: error: template with C
  linkage

   1418 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1433:3: error: template with C
  linkage

   1433 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1449:3: error: template with C
  linkage

   1449 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1466:3: error: template with C
  linkage

   1466 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/string:56,

                   from /usr/include/g++/bits/locale_classes.h:40,
                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_string.tcc:1538:3: error: template with C
  linkage

   1538 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:77:5: error: template with C linkage

     77 |     template<typename _Facet>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:81:5: error: template with C linkage

     81 |     template<typename _Facet>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:85:5: error: template with C linkage

     85 |     template<typename _Cache>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:205:5: error: template with C
  linkage

    205 |     template<typename _Facet>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:234:5: error: template with C
  linkage

    234 |     template<typename _Facet>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:284:5: error: template with C
  linkage

    284 |     template<typename _Char, typename _Traits, typename _Alloc>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:491:5: error: template with C
  linkage

    491 |     template<typename _Facet>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:495:5: error: template with C
  linkage

    495 |     template<typename _Facet>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:531:5: error: template with C
  linkage

    531 |     template<typename _Facet>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:535:5: error: template with C
  linkage

    535 |     template<typename _Facet>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:539:5: error: template with C
  linkage

    539 |     template<typename _Cache>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:610:5: error: template with C
  linkage

    610 |     template<typename _Facet>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:615:5: error: template with C
  linkage

    615 |     template<typename _Facet>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:643:3: error: template with C
  linkage

    643 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:794:3: error: template with C
  linkage

    794 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:798:3: error: template
  specialization with C linkage

    798 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:802:3: error: template
  specialization with C linkage

    802 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:807:3: error: template
  specialization with C linkage

    807 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:811:3: error: template
  specialization with C linkage

    811 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:41,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.h:817:3: error: template with C
  linkage

    817 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_classes.h:853,

                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.tcc:43:3: error: template with C
  linkage

     43 |   template<typename _Facet>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_classes.h:853,

                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.tcc:60:3: error: template with C
  linkage

     60 |   template<typename _Facet>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_classes.h:853,

                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.tcc:78:3: error: template with C
  linkage

     78 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_classes.h:853,

                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.tcc:102:3: error: template with C
  linkage

    102 |   template<typename _Facet>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_classes.h:853,

                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.tcc:130:3: error: template with C
  linkage

    130 |   template<typename _Facet>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_classes.h:853,

                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.tcc:147:3: error: template with C
  linkage

    147 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_classes.h:853,

                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.tcc:153:3: error: template with C
  linkage

    153 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_classes.h:853,

                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.tcc:158:3: error: template with C
  linkage

    158 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_classes.h:853,

                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.tcc:197:3: error: template with C
  linkage

    197 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_classes.h:853,

                   from /usr/include/g++/bits/ios_base.h:41,
                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_classes.tcc:253:3: error: template with C
  linkage

    253 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:46,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/system_error:59:3: error: template with C linkage

     59 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:46,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/system_error:63:3: error: template with C linkage

     63 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:46,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/system_error:66:3: error: template specialization with C
  linkage

     66 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:46,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/system_error:188:5: error: template with C linkage

    188 |     template<typename _ErrorCodeEnum, typename = typename
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:46,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/system_error:205:5: error: template with C linkage

    205 |     template<typename _ErrorCodeEnum>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:46,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/system_error:260:3: error: template with C linkage

    260 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:46,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/system_error:286:5: error: template with C linkage

    286 |     template<typename _ErrorConditionEnum, typename = typename
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:46,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/system_error:299:5: error: template with C linkage

    299 |     template<typename _ErrorConditionEnum>
        |     ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:46,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/system_error:349:3: error: conflicting declaration of C
  function 'bool std::operator==(const std::error_code&, const
  std::error_condition&)'

    349 |   operator==(const error_code& __lhs, const error_condition& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:342:3: note: previous declaration 'bool
  std::operator==(const std::error_code&, const std::error_code&)'

    342 |   operator==(const error_code& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:357:3: error: conflicting declaration of C
  function 'bool std::operator==(const std::error_condition&, const
  std::error_condition&)'

    357 |   operator==(const error_condition& __lhs,
        |   ^~~~~~~~

  /usr/include/g++/system_error:349:3: note: previous declaration 'bool
  std::operator==(const std::error_code&, const std::error_condition&)'

    349 |   operator==(const error_code& __lhs, const error_condition& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:357:3: error: conflicting declaration of C
  function 'bool std::operator==(const std::error_condition&, const
  std::error_condition&)'

    357 |   operator==(const error_condition& __lhs,
        |   ^~~~~~~~

  /usr/include/g++/system_error:342:3: note: previous declaration 'bool
  std::operator==(const std::error_code&, const std::error_code&)'

    342 |   operator==(const error_code& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:379:3: error: conflicting declaration of C
  function 'bool std::operator<(const std::error_condition&, const
  std::error_condition&)'

    379 |   operator<(const error_condition& __lhs,
        |   ^~~~~~~~

  /usr/include/g++/system_error:252:3: note: previous declaration 'bool
  std::operator<(const std::error_code&, const std::error_code&)'

    252 |   operator<(const error_code& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:390:3: error: conflicting declaration of C
  function 'bool std::operator==(const std::error_condition&, const
  std::error_code&)'

    390 |   operator==(const error_condition& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:357:3: note: previous declaration 'bool
  std::operator==(const std::error_condition&, const std::error_condition&)'

    357 |   operator==(const error_condition& __lhs,
        |   ^~~~~~~~

  /usr/include/g++/system_error:390:3: error: conflicting declaration of C
  function 'bool std::operator==(const std::error_condition&, const
  std::error_code&)'

    390 |   operator==(const error_condition& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:349:3: note: previous declaration 'bool
  std::operator==(const std::error_code&, const std::error_condition&)'

    349 |   operator==(const error_code& __lhs, const error_condition& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:390:3: error: conflicting declaration of C
  function 'bool std::operator==(const std::error_condition&, const
  std::error_code&)'

    390 |   operator==(const error_condition& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:342:3: note: previous declaration 'bool
  std::operator==(const std::error_code&, const std::error_code&)'

    342 |   operator==(const error_code& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:404:3: error: conflicting declaration of C
  function 'bool std::operator!=(const std::error_code&, const
  std::error_condition&)'

    404 |   operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:398:3: note: previous declaration 'bool
  std::operator!=(const std::error_code&, const std::error_code&)'

    398 |   operator!=(const error_code& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:410:3: error: conflicting declaration of C
  function 'bool std::operator!=(const std::error_condition&, const
  std::error_code&)'

    410 |   operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:404:3: note: previous declaration 'bool
  std::operator!=(const std::error_code&, const std::error_condition&)'

    404 |   operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:410:3: error: conflicting declaration of C
  function 'bool std::operator!=(const std::error_condition&, const
  std::error_code&)'

    410 |   operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:398:3: note: previous declaration 'bool
  std::operator!=(const std::error_code&, const std::error_code&)'

    398 |   operator!=(const error_code& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:415:3: error: conflicting declaration of C
  function 'bool std::operator!=(const std::error_condition&, const
  std::error_condition&)'

    415 |   operator!=(const error_condition& __lhs,
        |   ^~~~~~~~

  /usr/include/g++/system_error:410:3: note: previous declaration 'bool
  std::operator!=(const std::error_condition&, const std::error_code&)'

    410 |   operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:415:3: error: conflicting declaration of C
  function 'bool std::operator!=(const std::error_condition&, const
  std::error_condition&)'

    415 |   operator!=(const error_condition& __lhs,
        |   ^~~~~~~~

  /usr/include/g++/system_error:404:3: note: previous declaration 'bool
  std::operator!=(const std::error_code&, const std::error_condition&)'

    404 |   operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:415:3: error: conflicting declaration of C
  function 'bool std::operator!=(const std::error_condition&, const
  std::error_condition&)'

    415 |   operator!=(const error_condition& __lhs,
        |   ^~~~~~~~

  /usr/include/g++/system_error:398:3: note: previous declaration 'bool
  std::operator!=(const std::error_code&, const std::error_code&)'

    398 |   operator!=(const error_code& __lhs, const error_code& __rhs) noexcept
        |   ^~~~~~~~

  /usr/include/g++/system_error:478:3: error: template specialization with C
  linkage

    478 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:42,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ios_base.h:125:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Openmode std::operator&(std::_Ios_Openmode,
  std::_Ios_Openmode)'

    125 |   operator&(_Ios_Openmode __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:83:3: note: previous declaration
  'constexpr std::_Ios_Fmtflags std::operator&(std::_Ios_Fmtflags,
  std::_Ios_Fmtflags)'

     83 |   operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:129:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Openmode std::operator|(std::_Ios_Openmode,
  std::_Ios_Openmode)'

    129 |   operator|(_Ios_Openmode __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:87:3: note: previous declaration
  'constexpr std::_Ios_Fmtflags std::operator|(std::_Ios_Fmtflags,
  std::_Ios_Fmtflags)'

     87 |   operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:133:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Openmode std::operator^(std::_Ios_Openmode,
  std::_Ios_Openmode)'

    133 |   operator^(_Ios_Openmode __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:91:3: note: previous declaration
  'constexpr std::_Ios_Fmtflags std::operator^(std::_Ios_Fmtflags,
  std::_Ios_Fmtflags)'

     91 |   operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:137:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Openmode std::operator~(std::_Ios_Openmode)'

    137 |   operator~(_Ios_Openmode __a)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:95:3: note: previous declaration
  'constexpr std::_Ios_Fmtflags std::operator~(std::_Ios_Fmtflags)'

     95 |   operator~(_Ios_Fmtflags __a)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:141:3: error: conflicting declaration of C
  function 'const std::_Ios_Openmode& std::operator|=(std::_Ios_Openmode&,
  std::_Ios_Openmode)'

    141 |   operator|=(_Ios_Openmode& __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:99:3: note: previous declaration 'const
  std::_Ios_Fmtflags& std::operator|=(std::_Ios_Fmtflags&,
  std::_Ios_Fmtflags)'

     99 |   operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:145:3: error: conflicting declaration of C
  function 'const std::_Ios_Openmode& std::operator&=(std::_Ios_Openmode&,
  std::_Ios_Openmode)'

    145 |   operator&=(_Ios_Openmode& __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:103:3: note: previous declaration 'const
  std::_Ios_Fmtflags& std::operator&=(std::_Ios_Fmtflags&,
  std::_Ios_Fmtflags)'

    103 |   operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:149:3: error: conflicting declaration of C
  function 'const std::_Ios_Openmode& std::operator^=(std::_Ios_Openmode&,
  std::_Ios_Openmode)'

    149 |   operator^=(_Ios_Openmode& __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:107:3: note: previous declaration 'const
  std::_Ios_Fmtflags& std::operator^=(std::_Ios_Fmtflags&,
  std::_Ios_Fmtflags)'

    107 |   operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:165:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Iostate std::operator&(std::_Ios_Iostate,
  std::_Ios_Iostate)'

    165 |   operator&(_Ios_Iostate __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:125:3: note: previous declaration
  'constexpr std::_Ios_Openmode std::operator&(std::_Ios_Openmode,
  std::_Ios_Openmode)'

    125 |   operator&(_Ios_Openmode __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:165:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Iostate std::operator&(std::_Ios_Iostate,
  std::_Ios_Iostate)'

    165 |   operator&(_Ios_Iostate __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:83:3: note: previous declaration
  'constexpr std::_Ios_Fmtflags std::operator&(std::_Ios_Fmtflags,
  std::_Ios_Fmtflags)'

     83 |   operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:169:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Iostate std::operator|(std::_Ios_Iostate,
  std::_Ios_Iostate)'

    169 |   operator|(_Ios_Iostate __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:129:3: note: previous declaration
  'constexpr std::_Ios_Openmode std::operator|(std::_Ios_Openmode,
  std::_Ios_Openmode)'

    129 |   operator|(_Ios_Openmode __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:169:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Iostate std::operator|(std::_Ios_Iostate,
  std::_Ios_Iostate)'

    169 |   operator|(_Ios_Iostate __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:87:3: note: previous declaration
  'constexpr std::_Ios_Fmtflags std::operator|(std::_Ios_Fmtflags,
  std::_Ios_Fmtflags)'

     87 |   operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:173:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Iostate std::operator^(std::_Ios_Iostate,
  std::_Ios_Iostate)'

    173 |   operator^(_Ios_Iostate __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:133:3: note: previous declaration
  'constexpr std::_Ios_Openmode std::operator^(std::_Ios_Openmode,
  std::_Ios_Openmode)'

    133 |   operator^(_Ios_Openmode __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:173:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Iostate std::operator^(std::_Ios_Iostate,
  std::_Ios_Iostate)'

    173 |   operator^(_Ios_Iostate __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:91:3: note: previous declaration
  'constexpr std::_Ios_Fmtflags std::operator^(std::_Ios_Fmtflags,
  std::_Ios_Fmtflags)'

     91 |   operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:177:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Iostate std::operator~(std::_Ios_Iostate)'

    177 |   operator~(_Ios_Iostate __a)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:137:3: note: previous declaration
  'constexpr std::_Ios_Openmode std::operator~(std::_Ios_Openmode)'

    137 |   operator~(_Ios_Openmode __a)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:177:3: error: conflicting declaration of C
  function 'constexpr std::_Ios_Iostate std::operator~(std::_Ios_Iostate)'

    177 |   operator~(_Ios_Iostate __a)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:95:3: note: previous declaration
  'constexpr std::_Ios_Fmtflags std::operator~(std::_Ios_Fmtflags)'

     95 |   operator~(_Ios_Fmtflags __a)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:181:3: error: conflicting declaration of C
  function 'const std::_Ios_Iostate& std::operator|=(std::_Ios_Iostate&,
  std::_Ios_Iostate)'

    181 |   operator|=(_Ios_Iostate& __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:141:3: note: previous declaration 'const
  std::_Ios_Openmode& std::operator|=(std::_Ios_Openmode&,
  std::_Ios_Openmode)'

    141 |   operator|=(_Ios_Openmode& __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:181:3: error: conflicting declaration of C
  function 'const std::_Ios_Iostate& std::operator|=(std::_Ios_Iostate&,
  std::_Ios_Iostate)'

    181 |   operator|=(_Ios_Iostate& __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:99:3: note: previous declaration 'const
  std::_Ios_Fmtflags& std::operator|=(std::_Ios_Fmtflags&,
  std::_Ios_Fmtflags)'

     99 |   operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:185:3: error: conflicting declaration of C
  function 'const std::_Ios_Iostate& std::operator&=(std::_Ios_Iostate&,
  std::_Ios_Iostate)'

    185 |   operator&=(_Ios_Iostate& __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:145:3: note: previous declaration 'const
  std::_Ios_Openmode& std::operator&=(std::_Ios_Openmode&,
  std::_Ios_Openmode)'

    145 |   operator&=(_Ios_Openmode& __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:185:3: error: conflicting declaration of C
  function 'const std::_Ios_Iostate& std::operator&=(std::_Ios_Iostate&,
  std::_Ios_Iostate)'

    185 |   operator&=(_Ios_Iostate& __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:103:3: note: previous declaration 'const
  std::_Ios_Fmtflags& std::operator&=(std::_Ios_Fmtflags&,
  std::_Ios_Fmtflags)'

    103 |   operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:189:3: error: conflicting declaration of C
  function 'const std::_Ios_Iostate& std::operator^=(std::_Ios_Iostate&,
  std::_Ios_Iostate)'

    189 |   operator^=(_Ios_Iostate& __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:149:3: note: previous declaration 'const
  std::_Ios_Openmode& std::operator^=(std::_Ios_Openmode&,
  std::_Ios_Openmode)'

    149 |   operator^=(_Ios_Openmode& __a, _Ios_Openmode __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:189:3: error: conflicting declaration of C
  function 'const std::_Ios_Iostate& std::operator^=(std::_Ios_Iostate&,
  std::_Ios_Iostate)'

    189 |   operator^=(_Ios_Iostate& __a, _Ios_Iostate __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:107:3: note: previous declaration 'const
  std::_Ios_Fmtflags& std::operator^=(std::_Ios_Fmtflags&,
  std::_Ios_Fmtflags)'

    107 |   operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
        |   ^~~~~~~~

  /usr/include/g++/bits/ios_base.h:205:3: error: template specialization with
  C linkage

    205 |   template <> struct is_error_code_enum<io_errc> : public true_type { };
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:42,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ios_base.h:210:3: error: conflicting declaration of C
  function 'std::error_code std::make_error_code(std::io_errc)'

    210 |   make_error_code(io_errc __e) noexcept
        |   ^~~~~~~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:46,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/system_error:239:3: note: previous declaration
  'std::error_code std::make_error_code(std::errc)'

    239 |   make_error_code(errc __e) noexcept
        |   ^~~~~~~~~~~~~~~

  In file included from /usr/include/g++/ios:42,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ios_base.h:214:3: error: conflicting declaration of C
  function 'std::error_condition std::make_error_condition(std::io_errc)'

    214 |   make_error_condition(io_errc __e) noexcept
        |   ^~~~~~~~~~~~~~~~~~~~

  In file included from /usr/include/g++/bits/ios_base.h:46,

                   from /usr/include/g++/ios:42,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/system_error:335:3: note: previous declaration
  'std::error_condition std::make_error_condition(std::errc)'

    335 |   make_error_condition(errc __e) noexcept
        |   ^~~~~~~~~~~~~~~~~~~~

  In file included from /usr/include/g++/ios:43,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/streambuf:51:3: error: template with C linkage

     51 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:43,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/streambuf:121:3: error: template with C linkage

    121 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:43,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/streambuf:833:3: error: template with C linkage

    833 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:43,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/streambuf:837:3: error: template with C linkage

    837 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:43,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/streambuf:844:3: error: template specialization with C
  linkage

    844 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:43,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/streambuf:849:3: error: template specialization with C
  linkage

    849 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/streambuf:860,

                   from /usr/include/g++/ios:43,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf.tcc:43:3: error: template with C linkage

     43 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/streambuf:860,

                   from /usr/include/g++/ios:43,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf.tcc:77:3: error: template with C linkage

     77 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/streambuf:860,

                   from /usr/include/g++/ios:43,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf.tcc:114:3: error: template with C linkage

    114 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/streambuf:860,

                   from /usr/include/g++/ios:43,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf.tcc:137:3: error: template with C linkage

    137 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:48,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf_iterator.h:49:3: error: template with C
  linkage

     49 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:48,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf_iterator.h:225:3: error: template with C
  linkage

    225 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:48,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf_iterator.h:231:3: error: template with C
  linkage

    231 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:48,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf_iterator.h:238:3: error: template with C
  linkage

    238 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:48,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf_iterator.h:323:3: error: template with C
  linkage

    323 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:48,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf_iterator.h:340:3: error: template with C
  linkage

    340 |   template<bool _IsMove, typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:48,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf_iterator.h:352:3: error: template with C
  linkage

    352 |   template<bool _IsMove, typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:48,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf_iterator.h:364:3: error: template with C
  linkage

    364 |   template<bool _IsMove, typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:48,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf_iterator.h:400:3: error: template with C
  linkage

    400 |   template<typename _CharT, typename _Size>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:48,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf_iterator.h:419:3: error: template with C
  linkage

    419 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:48,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/streambuf_iterator.h:459:3: error: template with C
  linkage

    459 |   template<typename _CharT, typename _Distance>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:71:3: error: template with C linkage

     71 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:77:3: error: template specialization
  with C linkage

     77 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:82:3: error: template specialization
  with C linkage

     82 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:87:3: error: template specialization
  with C linkage

     87 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:94:3: error: template with C linkage

     94 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:107:3: error: template with C linkage

    107 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:116:3: error: template with C linkage

    116 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:126:3: error: template with C linkage

    126 |   template<typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:149:3: error: template with C linkage

    149 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:611:3: error: template with C linkage

    611 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:668:3: error: template with C linkage

    668 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:680:3: error: template specialization
  with C linkage

    680 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1185:3: error: template
  specialization with C linkage

   1185 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1477:3: error: template with C
  linkage

   1477 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1498:3: error: template
  specialization with C linkage

   1498 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1516:3: error: template
  specialization with C linkage

   1516 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1594:3: error: template with C
  linkage

   1594 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1642:3: error: template with C
  linkage

   1642 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1669:3: error: template with C
  linkage

   1669 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1882:3: error: template with C
  linkage

   1882 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1885:3: error: template
  specialization with C linkage

   1885 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1888:3: error: template
  specialization with C linkage

   1888 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1893:3: error: template
  specialization with C linkage

   1893 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1896:3: error: template
  specialization with C linkage

   1896 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1902:3: error: template with C
  linkage

   1902 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:1951:3: error: template with C
  linkage

   1951 |   template<typename _CharT, typename _InIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2276:3: error: template with C
  linkage

   2276 |   template<typename _CharT, typename _InIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2292:3: error: template with C
  linkage

   2292 |   template<typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2556:3: error: template with C
  linkage

   2556 |   template <typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2567:3: error: template with C
  linkage

   2567 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2573:3: error: template with C
  linkage

   2573 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2579:3: error: template with C
  linkage

   2579 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2585:3: error: template with C
  linkage

   2585 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2591:3: error: template with C
  linkage

   2591 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2597:3: error: template with C
  linkage

   2597 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2603:3: error: template with C
  linkage

   2603 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2609:3: error: template with C
  linkage

   2609 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2615:3: error: template with C
  linkage

   2615 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2621:3: error: template with C
  linkage

   2621 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2627:3: error: template with C
  linkage

   2627 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2634:3: error: template with C
  linkage

   2634 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2641:3: error: template with C
  linkage

   2641 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:37,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.h:2647:3: error: template with C
  linkage

   2647 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:41:3: error: template with C
  linkage

     41 |   template<typename _Facet>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:49:3: error: template with C
  linkage

     49 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:76:3: error: template with C
  linkage

     76 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:145:3: error: template with C
  linkage

    145 |   template<typename _CharT, typename _InIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:370:3: error: template with C
  linkage

    370 |   template<typename _CharT, typename _InIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:592:3: error: template with C
  linkage

    592 |   template<typename _CharT, typename _InIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:688:3: error: template with C
  linkage

    688 |   template<typename _CharT, typename _InIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:703:3: error: template with C
  linkage

    703 |   template<typename _CharT, typename _InIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:735:3: error: template with C
  linkage

    735 |   template<typename _CharT, typename _InIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:750:3: error: template with C
  linkage

    750 |   template<typename _CharT, typename _InIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:777:3: error: template with C
  linkage

    777 |   template<typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:792:3: error: template with C
  linkage

    792 |   template<typename _CharT, typename _ValueT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:836:3: error: template with C
  linkage

    836 |   template<typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:847:3: error: template with C
  linkage

    847 |   template<typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:936:3: error: template with C
  linkage

    936 |   template<typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:971:3: error: template with C
  linkage

    971 |   template<typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:1103:3: error: template with C
  linkage

   1103 |   template<typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:1155:3: error: template with C
  linkage

   1155 |   template<typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:1169:3: error: template with C
  linkage

   1169 |   template<typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:1176:3: error: template with C
  linkage

   1176 |   template<typename _CharT, typename _OutIter>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:1206:3: error: template with C
  linkage

   1206 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/locale_facets.h:2655,

                   from /usr/include/g++/bits/basic_ios.h:37,
                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/locale_facets.tcc:1255:3: error: template with C
  linkage

   1255 |   template<typename _CharT>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:44,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_ios.h:45:3: error: template with C linkage

     45 |   template<typename _Facet>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ios:44,

                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_ios.h:66:3: error: template with C linkage

     66 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:516,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_ios.tcc:39:3: error: template with C linkage

     39 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:516,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_ios.tcc:51:3: error: template with C linkage

     51 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:516,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_ios.tcc:61:3: error: template with C linkage

     61 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:516,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_ios.tcc:112:3: error: template with C linkage

    112 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:516,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_ios.tcc:124:3: error: template with C linkage

    124 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/bits/basic_ios.h:516,

                   from /usr/include/g++/ios:44,
                   from /usr/include/g++/istream:38,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/basic_ios.tcc:155:3: error: template with C linkage

    155 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:57:3: error: template with C linkage

     57 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:431:3: error: template with C linkage

    431 |   template <typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:504:3: error: template with C linkage

    504 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:509:3: error: template with C linkage

    509 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:515:3: error: template with C linkage

    515 |   template<typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:521:3: error: template with C linkage

    521 |   template<typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:526:3: error: template with C linkage

    526 |   template<typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:587:3: error: template with C linkage

    587 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:599:3: error: template with C linkage

    599 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:604:3: error: template with C linkage

    604 |   template<typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:617:3: error: template with C linkage

    617 |   template<typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:622:3: error: template with C linkage

    622 |   template<typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:679:3: error: template with C linkage

    679 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:691:3: error: template with C linkage

    691 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:701:3: error: template with C linkage

    701 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:707:3: error: template with C linkage

    707 |   template<typename _Ch, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:711:3: error: template with C linkage

    711 |   template<typename _Tp, typename = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:717:3: error: template with C linkage

    717 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:722:3: error: template with C linkage

    722 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:731:3: error: template with C linkage

    731 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:741:3: error: template with C linkage

    741 |   template<typename _Ostream, typename _Tp, typename = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:744:3: error: template with C linkage

    744 |   template<typename _Ostream, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:750:3: error: template with C linkage

    750 |   template<typename _Ostream>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:39,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/ostream:765:3: error: template with C linkage

    765 |   template<typename _Ostream, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:45:3: error: template with C linkage

     45 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:60:3: error: template with C linkage

     60 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:89:3: error: template with C linkage

     89 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:103:3: error: template with C linkage

    103 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:117:3: error: template with C linkage

    117 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:146:3: error: template with C linkage

    146 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:180:3: error: template with C linkage

    180 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:208:3: error: template with C linkage

    208 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:234:3: error: template with C linkage

    234 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:255:3: error: template with C linkage

    255 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:287:3: error: template with C linkage

    287 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/ostream:784,

                   from /usr/include/g++/istream:39,
                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/ostream.tcc:319:3: error: template with C linkage

    319 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:57:3: error: template with C linkage

     57 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:645:3: error: template specialization with C
  linkage

    645 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:650:3: error: template specialization with C
  linkage

    650 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:655:3: error: template specialization with C
  linkage

    655 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:661:3: error: template specialization with C
  linkage

    661 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:666:3: error: template specialization with C
  linkage

    666 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:671:3: error: template specialization with C
  linkage

    671 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:685:3: error: template with C linkage

    685 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:750:3: error: template with C linkage

    750 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:754:3: error: template with C linkage

    754 |   template<class _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:759:3: error: template with C linkage

    759 |   template<class _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:792:3: error: template with C linkage

    792 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:797:3: error: template specialization with C
  linkage

    797 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:801:3: error: template with C linkage

    801 |   template<class _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:806:3: error: template with C linkage

    806 |   template<class _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:823:3: error: template with C linkage

    823 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:906:3: error: template with C linkage

    906 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:911:3: error: template with C linkage

    911 |   template<typename _Ch, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:915:3: error: template with C linkage

    915 |   template<typename _Tp, typename = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:921:3: error: template with C linkage

    921 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:926:3: error: template with C linkage

    926 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:935:3: error: template with C linkage

    935 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:945:3: error: template with C linkage

    945 |   template<typename _Istream, typename _Tp, typename = void>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:948:3: error: template with C linkage

    948 |   template<typename _Istream, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:954:3: error: template with C linkage

    954 |   template<typename _Istream>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:38,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/istream:972:3: error: template with C linkage

    972 |   template<typename _Istream, typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:45:3: error: template with C linkage

     45 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:91:3: error: template with C linkage

     91 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:119:3: error: template with C linkage

    119 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:164:3: error: template with C linkage

    164 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:209:3: error: template with C linkage

    209 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:241:3: error: template with C linkage

    241 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:277:3: error: template with C linkage

    277 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:314:3: error: template with C linkage

    314 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:361:3: error: template with C linkage

    361 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:405:3: error: template with C linkage

    405 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:465:3: error: template with C linkage

    465 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:498:3: error: template with C linkage

    498 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:560:3: error: template with C linkage

    560 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:625:3: error: template with C linkage

    625 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:655:3: error: template with C linkage

    655 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:684:3: error: template with C linkage

    684 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:716:3: error: template with C linkage

    716 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:751:3: error: template with C linkage

    751 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:786:3: error: template with C linkage

    786 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:822:3: error: template with C linkage

    822 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:850:3: error: template with C linkage

    850 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:889:3: error: template with C linkage

    889 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:929:3: error: template with C linkage

    929 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:961:3: error: template with C linkage

    961 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/istream:991,

                   from /usr/include/g++/sstream:38,
                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/istream.tcc:1022:3: error: template with C linkage

   1022 |   template<typename _CharT, typename _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/complex:45,

                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/sstream:64:3: error: template with C linkage

     64 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/complex:45,

                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/sstream:391:3: error: template with C linkage

    391 |   template<typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/complex:45,

                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/sstream:549:3: error: template with C linkage

    549 |   template <typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/complex:45,

                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/sstream:707:3: error: template with C linkage

    707 |   template <typename _CharT, typename _Traits, typename _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/complex:45,

                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/sstream:847:3: error: template with C linkage

    847 |   template <class _CharT, class _Traits, class _Allocator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/complex:45,

                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/sstream:854:3: error: template with C linkage

    854 |   template <class _CharT, class _Traits, class _Allocator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/complex:45,

                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/sstream:861:3: error: template with C linkage

    861 |   template <class _CharT, class _Traits, class _Allocator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/complex:45,

                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/sstream:868:3: error: template with C linkage

    868 |   template <class _CharT, class _Traits, class _Allocator>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:879,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/sstream.tcc:43:3: error: template with C linkage

     43 |   template <class _CharT, class _Traits, class _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:879,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/sstream.tcc:77:3: error: template with C linkage

     77 |   template <class _CharT, class _Traits, class _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:879,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/sstream.tcc:147:3: error: template with C linkage

    147 |   template <class _CharT, class _Traits, class _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:879,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/sstream.tcc:165:3: error: template with C linkage

    165 |   template <class _CharT, class _Traits, class _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:879,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/sstream.tcc:213:3: error: template with C linkage

    213 |   template <class _CharT, class _Traits, class _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:879,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/sstream.tcc:243:3: error: template with C linkage

    243 |   template <class _CharT, class _Traits, class _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/include/g++/sstream:879,

                   from /usr/include/g++/complex:45,
                   from /usr/pkg/include/netlib/lapack.h:44,
                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/bits/sstream.tcc:274:3: error: template with C linkage

    274 |   template <class _CharT, class _Traits, class _Alloc>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:77:3: error: template with C linkage

     77 |   template<typename _Tp> class complex;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:78:3: error: template specialization with C
  linkage

     78 |   template<> class complex<float>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:79:3: error: template specialization with C
  linkage

     79 |   template<> class complex<double>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:80:3: error: template specialization with C
  linkage

     80 |   template<> class complex<long double>;
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:83:3: error: template with C linkage

     83 |   template<typename _Tp> _Tp abs(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:85:3: error: template with C linkage

     85 |   template<typename _Tp> _Tp arg(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:87:3: error: template with C linkage

     87 |   template<typename _Tp> _Tp _GLIBCXX20_CONSTEXPR norm(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:90:3: error: template with C linkage

     90 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:93:3: error: template with C linkage

     93 |   template<typename _Tp> complex<_Tp> polar(const _Tp&, const _Tp& = 0);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:97:3: error: template with C linkage

     97 |   template<typename _Tp> complex<_Tp> cos(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:99:3: error: template with C linkage

     99 |   template<typename _Tp> complex<_Tp> cosh(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:101:3: error: template with C linkage

    101 |   template<typename _Tp> complex<_Tp> exp(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:103:3: error: template with C linkage

    103 |   template<typename _Tp> complex<_Tp> log(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:105:3: error: template with C linkage

    105 |   template<typename _Tp> complex<_Tp> log10(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:107:3: error: template with C linkage

    107 |   template<typename _Tp> complex<_Tp> pow(const complex<_Tp>&, int);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:109:3: error: template with C linkage

    109 |   template<typename _Tp> complex<_Tp> pow(const complex<_Tp>&, const _Tp&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:111:3: error: template with C linkage

    111 |   template<typename _Tp> complex<_Tp> pow(const complex<_Tp>&,
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:114:3: error: template with C linkage

    114 |   template<typename _Tp> complex<_Tp> pow(const _Tp&, const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:116:3: error: template with C linkage

    116 |   template<typename _Tp> complex<_Tp> sin(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:118:3: error: template with C linkage

    118 |   template<typename _Tp> complex<_Tp> sinh(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:120:3: error: template with C linkage

    120 |   template<typename _Tp> complex<_Tp> sqrt(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:122:3: error: template with C linkage

    122 |   template<typename _Tp> complex<_Tp> tan(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:124:3: error: template with C linkage

    124 |   template<typename _Tp> complex<_Tp> tanh(const complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:136:3: error: template with C linkage

    136 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:248:3: error: template with C linkage

    248 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:258:3: error: template with C linkage

    258 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:268:3: error: template with C linkage

    268 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:277:3: error: template with C linkage

    277 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:288:3: error: template with C linkage

    288 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:299:3: error: template with C linkage

    299 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:311:3: error: template with C linkage

    311 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:324:3: error: template with C linkage

    324 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:339:3: error: template with C linkage

    339 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:348:3: error: template with C linkage

    348 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:357:3: error: template with C linkage

    357 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:369:3: error: template with C linkage

    369 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:378:3: error: template with C linkage

    378 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:387:3: error: template with C linkage

    387 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:399:3: error: template with C linkage

    399 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:408:3: error: template with C linkage

    408 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:417:3: error: template with C linkage

    417 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:429:3: error: template with C linkage

    429 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:438:3: error: template with C linkage

    438 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:447:3: error: template with C linkage

    447 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:458:3: error: template with C linkage

    458 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:464:3: error: template with C linkage

    464 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:471:3: error: template with C linkage

    471 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:476:3: error: template with C linkage

    476 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:482:3: error: template with C linkage

    482 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:490:3: error: template with C linkage

    490 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:495:3: error: template with C linkage

    495 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:500:3: error: template with C linkage

    500 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:508:3: error: template with C linkage

    508 |   template<typename _Tp, typename _CharT, class _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:562:3: error: template with C linkage

    562 |   template<typename _Tp, typename _CharT, class _Traits>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:576:3: error: template with C linkage

    576 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:581:3: error: template with C linkage

    581 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:608:3: error: template with C linkage

    608 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:628:3: error: conflicting declaration of C
  function 'double std::__complex_abs(__complex__ double)'

    628 |   __complex_abs(__complex__ double __z) { return __c99_cabs(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:625:3: note: previous declaration 'float
  std::__complex_abs(__complex__ float)'

    625 |   __complex_abs(__complex__ float __z) { return __c99_cabsf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:631:3: error: conflicting declaration of C
  function 'long double std::__complex_abs(const __complex__ long double&)'

    631 |   __complex_abs(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:628:3: note: previous declaration 'double
  std::__complex_abs(__complex__ double)'

    628 |   __complex_abs(__complex__ double __z) { return __c99_cabs(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:631:3: error: conflicting declaration of C
  function 'long double std::__complex_abs(const __complex__ long double&)'

    631 |   __complex_abs(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:625:3: note: previous declaration 'float
  std::__complex_abs(__complex__ float)'

    625 |   __complex_abs(__complex__ float __z) { return __c99_cabsf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:634:3: error: template with C linkage

    634 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:645:3: error: template with C linkage

    645 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:655:3: error: conflicting declaration of C
  function 'double std::__complex_arg(__complex__ double)'

    655 |   __complex_arg(__complex__ double __z) { return __builtin_carg(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:652:3: note: previous declaration 'float
  std::__complex_arg(__complex__ float)'

    652 |   __complex_arg(__complex__ float __z) { return __builtin_cargf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:658:3: error: conflicting declaration of C
  function 'long double std::__complex_arg(const __complex__ long double&)'

    658 |   __complex_arg(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:655:3: note: previous declaration 'double
  std::__complex_arg(__complex__ double)'

    655 |   __complex_arg(__complex__ double __z) { return __builtin_carg(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:658:3: error: conflicting declaration of C
  function 'long double std::__complex_arg(const __complex__ long double&)'

    658 |   __complex_arg(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:652:3: note: previous declaration 'float
  std::__complex_arg(__complex__ float)'

    652 |   __complex_arg(__complex__ float __z) { return __builtin_cargf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:661:3: error: template with C linkage

    661 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:675:3: error: template with C linkage

    675 |   template<bool>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:687:3: error: template specialization with C
  linkage

    687 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:701:3: error: template with C linkage

    701 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:709:3: error: template with C linkage

    709 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:717:3: error: template with C linkage

    717 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:725:3: error: template with C linkage

    725 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:739:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_cos(__complex__ double)'

    739 |   __complex_cos(__complex__ double __z) { return __builtin_ccos(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:736:3: note: previous declaration '__complex__
  float std::__complex_cos(__complex__ float)'

    736 |   __complex_cos(__complex__ float __z) { return __builtin_ccosf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:742:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_cos(const __complex__ long
  double&)'

    742 |   __complex_cos(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:739:3: note: previous declaration '__complex__
  double std::__complex_cos(__complex__ double)'

    739 |   __complex_cos(__complex__ double __z) { return __builtin_ccos(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:742:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_cos(const __complex__ long
  double&)'

    742 |   __complex_cos(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:736:3: note: previous declaration '__complex__
  float std::__complex_cos(__complex__ float)'

    736 |   __complex_cos(__complex__ float __z) { return __builtin_ccosf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:745:3: error: template with C linkage

    745 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:755:3: error: template with C linkage

    755 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:769:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_cosh(__complex__ double)'

    769 |   __complex_cosh(__complex__ double __z) { return __builtin_ccosh(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:766:3: note: previous declaration '__complex__
  float std::__complex_cosh(__complex__ float)'

    766 |   __complex_cosh(__complex__ float __z) { return __builtin_ccoshf(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:772:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_cosh(const __complex__
  long double&)'

    772 |   __complex_cosh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:769:3: note: previous declaration '__complex__
  double std::__complex_cosh(__complex__ double)'

    769 |   __complex_cosh(__complex__ double __z) { return __builtin_ccosh(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:772:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_cosh(const __complex__
  long double&)'

    772 |   __complex_cosh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:766:3: note: previous declaration '__complex__
  float std::__complex_cosh(__complex__ float)'

    766 |   __complex_cosh(__complex__ float __z) { return __builtin_ccoshf(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:775:3: error: template with C linkage

    775 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:785:3: error: template with C linkage

    785 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:795:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_exp(__complex__ double)'

    795 |   __complex_exp(__complex__ double __z) { return __builtin_cexp(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:792:3: note: previous declaration '__complex__
  float std::__complex_exp(__complex__ float)'

    792 |   __complex_exp(__complex__ float __z) { return __builtin_cexpf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:798:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_exp(const __complex__ long
  double&)'

    798 |   __complex_exp(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:795:3: note: previous declaration '__complex__
  double std::__complex_exp(__complex__ double)'

    795 |   __complex_exp(__complex__ double __z) { return __builtin_cexp(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:798:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_exp(const __complex__ long
  double&)'

    798 |   __complex_exp(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:792:3: note: previous declaration '__complex__
  float std::__complex_exp(__complex__ float)'

    792 |   __complex_exp(__complex__ float __z) { return __builtin_cexpf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:801:3: error: template with C linkage

    801 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:812:3: error: template with C linkage

    812 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:822:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_log(__complex__ double)'

    822 |   __complex_log(__complex__ double __z) { return __builtin_clog(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:819:3: note: previous declaration '__complex__
  float std::__complex_log(__complex__ float)'

    819 |   __complex_log(__complex__ float __z) { return __builtin_clogf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:825:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_log(const __complex__ long
  double&)'

    825 |   __complex_log(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:822:3: note: previous declaration '__complex__
  double std::__complex_log(__complex__ double)'

    822 |   __complex_log(__complex__ double __z) { return __builtin_clog(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:825:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_log(const __complex__ long
  double&)'

    825 |   __complex_log(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:819:3: note: previous declaration '__complex__
  float std::__complex_log(__complex__ float)'

    819 |   __complex_log(__complex__ float __z) { return __builtin_clogf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:828:3: error: template with C linkage

    828 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:837:3: error: template with C linkage

    837 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:843:3: error: template with C linkage

    843 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:857:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_sin(__complex__ double)'

    857 |   __complex_sin(__complex__ double __z) { return __builtin_csin(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:854:3: note: previous declaration '__complex__
  float std::__complex_sin(__complex__ float)'

    854 |   __complex_sin(__complex__ float __z) { return __builtin_csinf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:860:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_sin(const __complex__ long
  double&)'

    860 |   __complex_sin(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:857:3: note: previous declaration '__complex__
  double std::__complex_sin(__complex__ double)'

    857 |   __complex_sin(__complex__ double __z) { return __builtin_csin(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:860:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_sin(const __complex__ long
  double&)'

    860 |   __complex_sin(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:854:3: note: previous declaration '__complex__
  float std::__complex_sin(__complex__ float)'

    854 |   __complex_sin(__complex__ float __z) { return __builtin_csinf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:863:3: error: template with C linkage

    863 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:873:3: error: template with C linkage

    873 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:887:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_sinh(__complex__ double)'

    887 |   __complex_sinh(__complex__ double __z) { return __builtin_csinh(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:884:3: note: previous declaration '__complex__
  float std::__complex_sinh(__complex__ float)'

    884 |   __complex_sinh(__complex__ float __z) { return __builtin_csinhf(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:890:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_sinh(const __complex__
  long double&)'

    890 |   __complex_sinh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:887:3: note: previous declaration '__complex__
  double std::__complex_sinh(__complex__ double)'

    887 |   __complex_sinh(__complex__ double __z) { return __builtin_csinh(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:890:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_sinh(const __complex__
  long double&)'

    890 |   __complex_sinh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:884:3: note: previous declaration '__complex__
  float std::__complex_sinh(__complex__ float)'

    884 |   __complex_sinh(__complex__ float __z) { return __builtin_csinhf(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:893:3: error: template with C linkage

    893 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:904:3: error: template with C linkage

    904 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:931:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_sqrt(__complex__ double)'

    931 |   __complex_sqrt(__complex__ double __z) { return __builtin_csqrt(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:928:3: note: previous declaration '__complex__
  float std::__complex_sqrt(__complex__ float)'

    928 |   __complex_sqrt(__complex__ float __z) { return __builtin_csqrtf(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:934:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_sqrt(const __complex__
  long double&)'

    934 |   __complex_sqrt(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:931:3: note: previous declaration '__complex__
  double std::__complex_sqrt(__complex__ double)'

    931 |   __complex_sqrt(__complex__ double __z) { return __builtin_csqrt(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:934:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_sqrt(const __complex__
  long double&)'

    934 |   __complex_sqrt(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:928:3: note: previous declaration '__complex__
  float std::__complex_sqrt(__complex__ float)'

    928 |   __complex_sqrt(__complex__ float __z) { return __builtin_csqrtf(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:937:3: error: template with C linkage

    937 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:948:3: error: template with C linkage

    948 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:958:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_tan(__complex__ double)'

    958 |   __complex_tan(__complex__ double __z) { return __builtin_ctan(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:955:3: note: previous declaration '__complex__
  float std::__complex_tan(__complex__ float)'

    955 |   __complex_tan(__complex__ float __z) { return __builtin_ctanf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:961:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_tan(const __complex__ long
  double&)'

    961 |   __complex_tan(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:958:3: note: previous declaration '__complex__
  double std::__complex_tan(__complex__ double)'

    958 |   __complex_tan(__complex__ double __z) { return __builtin_ctan(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:961:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_tan(const __complex__ long
  double&)'

    961 |   __complex_tan(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:955:3: note: previous declaration '__complex__
  float std::__complex_tan(__complex__ float)'

    955 |   __complex_tan(__complex__ float __z) { return __builtin_ctanf(__z); }
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:964:3: error: template with C linkage

    964 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:976:3: error: template with C linkage

    976 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:986:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_tanh(__complex__ double)'

    986 |   __complex_tanh(__complex__ double __z) { return __builtin_ctanh(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:983:3: note: previous declaration '__complex__
  float std::__complex_tanh(__complex__ float)'

    983 |   __complex_tanh(__complex__ float __z) { return __builtin_ctanhf(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:989:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_tanh(const __complex__
  long double&)'

    989 |   __complex_tanh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:986:3: note: previous declaration '__complex__
  double std::__complex_tanh(__complex__ double)'

    986 |   __complex_tanh(__complex__ double __z) { return __builtin_ctanh(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:989:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_tanh(const __complex__
  long double&)'

    989 |   __complex_tanh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:983:3: note: previous declaration '__complex__
  float std::__complex_tanh(__complex__ float)'

    983 |   __complex_tanh(__complex__ float __z) { return __builtin_ctanhf(__z); }
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:992:3: error: template with C linkage

    992 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1005:3: error: template with C linkage

   1005 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1027:3: error: template with C linkage

   1027 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1036:3: error: template with C linkage

   1036 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1051:3: error: template with C linkage

   1051 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1062:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_pow(__complex__ double,
  __complex__ double)'

   1062 |   __complex_pow(__complex__ double __x, __complex__ double __y)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:1058:3: note: previous declaration '__complex__
  float std::__complex_pow(__complex__ float, __complex__ float)'

   1058 |   __complex_pow(__complex__ float __x, __complex__ float __y)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:1066:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_pow(const __complex__ long
  double&, const __complex__ long double&)'

   1066 |   __complex_pow(const __complex__ long double& __x,
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:1062:3: note: previous declaration '__complex__
  double std::__complex_pow(__complex__ double, __complex__ double)'

   1062 |   __complex_pow(__complex__ double __x, __complex__ double __y)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:1066:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_pow(const __complex__ long
  double&, const __complex__ long double&)'

   1066 |   __complex_pow(const __complex__ long double& __x,
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:1058:3: note: previous declaration '__complex__
  float std::__complex_pow(__complex__ float, __complex__ float)'

   1058 |   __complex_pow(__complex__ float __x, __complex__ float __y)
        |   ^~~~~~~~~~~~~

  /usr/include/g++/complex:1070:3: error: template with C linkage

   1070 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1081:3: error: template with C linkage

   1081 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1092:3: error: template specialization with C
  linkage

   1092 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1237:3: error: template specialization with C
  linkage

   1237 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1382:3: error: template specialization with C
  linkage

   1382 |   template<>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1572:3: error: template with C linkage

   1572 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1579:3: error: template with C linkage

   1579 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1586:3: error: template with C linkage

   1586 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1603:3: error: template with C linkage

   1603 |   template<typename _Tp> std::complex<_Tp> acos(const std::complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1604:3: error: template with C linkage

   1604 |   template<typename _Tp> std::complex<_Tp> asin(const std::complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1605:3: error: template with C linkage

   1605 |   template<typename _Tp> std::complex<_Tp> atan(const std::complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1607:3: error: template with C linkage

   1607 |   template<typename _Tp> std::complex<_Tp> acosh(const std::complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1608:3: error: template with C linkage

   1608 |   template<typename _Tp> std::complex<_Tp> asinh(const std::complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1609:3: error: template with C linkage

   1609 |   template<typename _Tp> std::complex<_Tp> atanh(const std::complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1611:3: error: template with C linkage

   1611 |   template<typename _Tp> _Tp               fabs(const std::complex<_Tp>&);
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1613:3: error: template with C linkage

   1613 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1628:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_acos(__complex__ double)'

   1628 |   __complex_acos(__complex__ double __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1624:3: note: previous declaration '__complex__
  float std::__complex_acos(__complex__ float)'

   1624 |   __complex_acos(__complex__ float __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1632:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_acos(const __complex__
  long double&)'

   1632 |   __complex_acos(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1628:3: note: previous declaration '__complex__
  double std::__complex_acos(__complex__ double)'

   1628 |   __complex_acos(__complex__ double __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1632:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_acos(const __complex__
  long double&)'

   1632 |   __complex_acos(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1624:3: note: previous declaration '__complex__
  float std::__complex_acos(__complex__ float)'

   1624 |   __complex_acos(__complex__ float __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1635:3: error: template with C linkage

   1635 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1649:3: error: template with C linkage

   1649 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1664:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_asin(__complex__ double)'

   1664 |   __complex_asin(__complex__ double __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1660:3: note: previous declaration '__complex__
  float std::__complex_asin(__complex__ float)'

   1660 |   __complex_asin(__complex__ float __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1668:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_asin(const __complex__
  long double&)'

   1668 |   __complex_asin(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1664:3: note: previous declaration '__complex__
  double std::__complex_asin(__complex__ double)'

   1664 |   __complex_asin(__complex__ double __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1668:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_asin(const __complex__
  long double&)'

   1668 |   __complex_asin(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1660:3: note: previous declaration '__complex__
  float std::__complex_asin(__complex__ float)'

   1660 |   __complex_asin(__complex__ float __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1671:3: error: template with C linkage

   1671 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1685:3: error: template with C linkage

   1685 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1708:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_atan(__complex__ double)'

   1708 |   __complex_atan(__complex__ double __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1704:3: note: previous declaration '__complex__
  float std::__complex_atan(__complex__ float)'

   1704 |   __complex_atan(__complex__ float __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1712:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_atan(const __complex__
  long double&)'

   1712 |   __complex_atan(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1708:3: note: previous declaration '__complex__
  double std::__complex_atan(__complex__ double)'

   1708 |   __complex_atan(__complex__ double __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1712:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_atan(const __complex__
  long double&)'

   1712 |   __complex_atan(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1704:3: note: previous declaration '__complex__
  float std::__complex_atan(__complex__ float)'

   1704 |   __complex_atan(__complex__ float __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1715:3: error: template with C linkage

   1715 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1729:3: error: template with C linkage

   1729 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1744:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_acosh(__complex__ double)'

   1744 |   __complex_acosh(__complex__ double __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1740:3: note: previous declaration '__complex__
  float std::__complex_acosh(__complex__ float)'

   1740 |   __complex_acosh(__complex__ float __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1748:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_acosh(const __complex__
  long double&)'

   1748 |   __complex_acosh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1744:3: note: previous declaration '__complex__
  double std::__complex_acosh(__complex__ double)'

   1744 |   __complex_acosh(__complex__ double __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1748:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_acosh(const __complex__
  long double&)'

   1748 |   __complex_acosh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1740:3: note: previous declaration '__complex__
  float std::__complex_acosh(__complex__ float)'

   1740 |   __complex_acosh(__complex__ float __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1751:3: error: template with C linkage

   1751 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1765:3: error: template with C linkage

   1765 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1783:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_asinh(__complex__ double)'

   1783 |   __complex_asinh(__complex__ double __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1779:3: note: previous declaration '__complex__
  float std::__complex_asinh(__complex__ float)'

   1779 |   __complex_asinh(__complex__ float __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1787:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_asinh(const __complex__
  long double&)'

   1787 |   __complex_asinh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1783:3: note: previous declaration '__complex__
  double std::__complex_asinh(__complex__ double)'

   1783 |   __complex_asinh(__complex__ double __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1787:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_asinh(const __complex__
  long double&)'

   1787 |   __complex_asinh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1779:3: note: previous declaration '__complex__
  float std::__complex_asinh(__complex__ float)'

   1779 |   __complex_asinh(__complex__ float __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1790:3: error: template with C linkage

   1790 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1804:3: error: template with C linkage

   1804 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1827:3: error: conflicting declaration of C
  function '__complex__ double std::__complex_atanh(__complex__ double)'

   1827 |   __complex_atanh(__complex__ double __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1823:3: note: previous declaration '__complex__
  float std::__complex_atanh(__complex__ float)'

   1823 |   __complex_atanh(__complex__ float __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1831:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_atanh(const __complex__
  long double&)'

   1831 |   __complex_atanh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1827:3: note: previous declaration '__complex__
  double std::__complex_atanh(__complex__ double)'

   1827 |   __complex_atanh(__complex__ double __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1831:3: error: conflicting declaration of C
  function '__complex__ long double std::__complex_atanh(const __complex__
  long double&)'

   1831 |   __complex_atanh(const __complex__ long double& __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1823:3: note: previous declaration '__complex__
  float std::__complex_atanh(__complex__ float)'

   1823 |   __complex_atanh(__complex__ float __z)
        |   ^~~~~~~~~~~~~~~

  /usr/include/g++/complex:1834:3: error: template with C linkage

   1834 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1848:3: error: template with C linkage

   1848 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1857:3: error: template with C linkage

   1857 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1870:3: error: template with C linkage

   1870 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1875:3: error: template with C linkage

   1875 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1883:3: error: template with C linkage

   1883 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1888:3: error: template with C linkage

   1888 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1896:3: error: template with C linkage

   1896 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1904:3: error: template with C linkage

   1904 |   template<typename _Tp, typename _Up>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1915:3: error: template with C linkage

   1915 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1919:3: error: template with C linkage

   1919 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1930:3: error: conflicting declaration of C
  function 'std::complex<double> std::__complex_proj(const
  std::complex<double>&)'

   1930 |   __complex_proj(const complex<double>& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1926:3: note: previous declaration
  'std::complex<float> std::__complex_proj(const std::complex<float>&)'

   1926 |   __complex_proj(const complex<float>& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1934:3: error: conflicting declaration of C
  function 'std::complex<long double> std::__complex_proj(const
  std::complex<long double>&)'

   1934 |   __complex_proj(const complex<long double>& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1930:3: note: previous declaration
  'std::complex<double> std::__complex_proj(const std::complex<double>&)'

   1930 |   __complex_proj(const complex<double>& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1934:3: error: conflicting declaration of C
  function 'std::complex<long double> std::__complex_proj(const
  std::complex<long double>&)'

   1934 |   __complex_proj(const complex<long double>& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1926:3: note: previous declaration
  'std::complex<float> std::__complex_proj(const std::complex<float>&)'

   1926 |   __complex_proj(const complex<float>& __z)
        |   ^~~~~~~~~~~~~~

  /usr/include/g++/complex:1965:3: error: template with C linkage

   1965 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1971:3: error: template with C linkage

   1971 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1979:3: error: template with C linkage

   1979 |   template<typename _Tp>
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:1997:3: error: literal operator with C linkage

   1997 |   operator""if(long double __num)
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:2001:3: error: literal operator with C linkage

   2001 |   operator""if(unsigned long long __num)
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:2005:3: error: literal operator with C linkage

   2005 |   operator""i(long double __num)
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:2009:3: error: literal operator with C linkage

   2009 |   operator""i(unsigned long long __num)
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:2013:3: error: literal operator with C linkage

   2013 |   operator""il(long double __num)
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  In file included from /usr/pkg/include/netlib/lapack.h:44,

                   from /usr/pkg/include/netlib/lapacke.h:36,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:12,
                   from /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:

  /usr/include/g++/complex:2017:3: error: literal operator with C linkage

   2017 |   operator""il(unsigned long long __num)
        |   ^~~~~~~~

  In file included from
  /scratch/graphics/opencv/work/opencv-3.4.17/cmake/checks/lapack_check.cpp:2:


  /scratch/graphics/opencv/work/opencv-3.4.17/build/opencv_lapack.h:3:1:
  note: 'extern "C"' linkage started here

      3 | extern "C" {
        | ^~~~~~~~~~

  make[1]: *** [CMakeFiles/cmTC_ff3b4.dir/build.make:78:
  CMakeFiles/cmTC_ff3b4.dir/lapack_check.cpp.o] Error 1

  make[1]: Leaving directory
  '/scratch/graphics/opencv/work/opencv-3.4.17/build/CMakeFiles/CMakeTmp'

  gmake: *** [Makefile:127: cmTC_ff3b4/fast] Error 2



Call Stack (most recent call first):
  cmake/OpenCVFindLAPACK.cmake:114 (ocv_lapack_check)
  CMakeLists.txt:677 (include)


-- Configuring incomplete, errors occurred!
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/graphics/opencv
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/opencv

Please fix this, or revert.

Thanks,
 Thomas


Home | Main Index | Thread Index | Old Index