zoukankan      html  css  js  c++  java
  • 编译tensorrtx/retinaface遇到报错/usr/local/cuda/include/vector_types.h(421): error: identifier "constexpr" is undefined

    在CMakeLists.txt中增加一行

    SET(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -std=c++11")

    参考https://github.com/OpenKinect/libfreenect2/issues/818

    [ 20%] Building NVCC (Device) object CMakeFiles/decodeplugin.dir//./decodeplugin_generated_decode.cu.o
    /usr/local/cuda/include/vector_types.h(421): error: identifier "constexpr" is undefined

    /usr/local/cuda/include/vector_types.h(421): error: member function with the same name as its class must be a constructor

    /usr/local/cuda/include/vector_types.h(421): error: expected a ";"

    /usr/local/cuda/include/vector_types.h(430): warning: parsing restarts here after previous syntax error

    /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h(432): error: identifier "nullptr" is undefined

    /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h(432): error: expected a ";"

    /usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h(1861): error: expected a ";"

    /usr/include/c++/4.8.2/exception(63): error: expected a ";"

    /usr/include/c++/4.8.2/exception(68): error: expected a ";"

    /usr/include/c++/4.8.2/exception(76): error: expected a ";"

    /usr/include/c++/4.8.2/exception(83): error: expected a ";"

    /usr/include/c++/4.8.2/exception(93): error: expected a "{"

    /usr/include/c++/4.8.2/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr"

    /usr/include/c++/4.8.2/bits/exception_ptr.h(64): error: expected a "{"

    /usr/include/c++/4.8.2/bits/exception_ptr.h(79): error: expected a ";"

    /usr/include/c++/4.8.2/bits/exception_ptr.h(81): error: expected a ";"

    /usr/include/c++/4.8.2/bits/exception_ptr.h(82): error: expected a ";"

    /usr/include/c++/4.8.2/bits/exception_ptr.h(84): error: expected a ";"

  • 相关阅读:
    以太网数据帧最小64字节
    网络基础协议之ARP
    Windows FAT32转换NTFS
    Java面试红宝书(尼恩编著)
    死磕设计模式1:Builder (构建者模式)
    Zookeeper 分布式锁 (图解+秒懂+史上最全)
    TCP/IP协议 (图解+秒懂+史上最全)
    Java高并发核心编程(卷2):多线程、锁、JMM、JUC、高并发设计模式
    Java高并发核心编程(卷1):NIO、Netty、Redis、ZooKeeper
    ThreadLocal(史上最全)
  • 原文地址:https://www.cnblogs.com/owlowl/p/14481378.html
Copyright © 2011-2022 走看看