使用VS2015构建Dlib C ++时构建失败

时间:2019-06-12 12:03:55

标签: c++ visual-studio build dlib

我试图使用带有x64发行版的VS 2015构建dlib,但是构建失败时遇到一些错误,调试x64也会发生相同的情况 这是使用x64版构建dlib项目后出现的错误

 auto.cpp
    2>c:\dlib-19.15\dlib- 
    19.15\source\dlib\global_optimization/find_max_global.h(77): error C2535: 
    'unknown-type 
   dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const 


  dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> 
    &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(84): note: see reference to class template instantiation 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>' being compiled (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(78): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(79): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(80): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(81): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(82): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(83): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\filtering\kalman_filter.cpp)
2>  sockets_kernel_1.cpp
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(77): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(84): note: see reference to class template instantiation 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>' being compiled (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(78): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(79): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(80): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(81): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(82): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(83): error C2535: 'unknown-type dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go(T &&,const dlib::matrix<double,0,1,dlib::default_memory_manager,dlib::row_major_layout> &)': member function already defined or declared (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp)
2>  c:\dlib-19.15\dlib-19.15\source\dlib\global_optimization/find_max_global.h(76): note: see declaration of 'dlib::gopt_impl::call_function_and_expand_args<max_unpack>::go' (compiling source file C:\dlib-19.15\dlib-19.15\source\dlib\svm\auto.cpp) 

0 个答案:

没有答案