Сбой сборки при сборке Dlib c ++ с использованием VS2015 - PullRequest
0 голосов
/ 12 июня 2019

Я пытался собрать dlib с использованием VS 2015 с выпуском x64, но сборка не удалась с некоторыми ошибками, и то же самое происходит с отладкой x64. Вот ошибки, которые появляются после сборки проекта dlib с выпуском x64

 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) 
...