Sameer,
Thanks for the quick resonse. However, even if I tell the compiler to ignore this warning, I still get tons of error messages when compiling helloworld.cc. See below.
No clue what I do wrong here, as I haven't written a single lineof code myself. Help is appreciated.
Peter
Build started...
1>------ Build started: Project: CeresSolver, Configuration: Release x64 ------
1>helloworld.cc
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(343,16): error C2589: '(': illegal token on right side of '::'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(325,3): message : This diagnostic occurred in the compiler generated function 'ceres::ProductParameterization::ProductParameterization(LocalParams *...)'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(343,16): error C3878: syntax error: unexpected token '(' following 'expression'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(325,3): message : This diagnostic occurred in the compiler generated function 'ceres::ProductParameterization::ProductParameterization(LocalParams *...)'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(343,16): message : error recovery skipped: '( ( identifier'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(325,3): message : This diagnostic occurred in the compiler generated function 'ceres::ProductParameterization::ProductParameterization(LocalParams *...)'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(343,16): error C2760: syntax error: ')' was unexpected here; expected ';'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(325,3): message : This diagnostic occurred in the compiler generated function 'ceres::ProductParameterization::ProductParameterization(LocalParams *...)'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(343,16): error C3878: syntax error: unexpected token ')' following 'expression_statement'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(325,3): message : This diagnostic occurred in the compiler generated function 'ceres::ProductParameterization::ProductParameterization(LocalParams *...)'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(343,16): message : error recovery skipped: ') >'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(325,3): message : This diagnostic occurred in the compiler generated function 'ceres::ProductParameterization::ProductParameterization(LocalParams *...)'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(343,16): message : error recovery skipped: ') ?'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(325,3): message : This diagnostic occurred in the compiler generated function 'ceres::ProductParameterization::ProductParameterization(LocalParams *...)'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(343,16): error C2760: syntax error: ':' was unexpected here; expected ';'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(325,3): message : This diagnostic occurred in the compiler generated function 'ceres::ProductParameterization::ProductParameterization(LocalParams *...)'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(343,16): error C3878: syntax error: unexpected token ':' following 'expression_statement'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(325,3): message : This diagnostic occurred in the compiler generated function 'ceres::ProductParameterization::ProductParameterization(LocalParams *...)'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(343,16): message : error recovery skipped: ':'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(325,3): message : This diagnostic occurred in the compiler generated function 'ceres::ProductParameterization::ProductParameterization(LocalParams *...)'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(343,16): message : error recovery skipped: ')'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\local_parameterization.h(325,3): message : This diagnostic occurred in the compiler generated function 'ceres::ProductParameterization::ProductParameterization(LocalParams *...)'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\gradient_problem_solver.h(255,37): warning C4251: 'ceres::GradientProblemSolver::Options::callbacks': class 'std::vector<ceres::IterationCallback *,std::allocator<ceres::IterationCallback *>>' needs to have dll-interface to be used by clients of struct 'ceres::GradientProblemSolver::Options'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\gradient_problem_solver.h(255,10): message : see declaration of 'std::vector<ceres::IterationCallback *,std::allocator<ceres::IterationCallback *>>'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\gradient_problem_solver.h(273,17): warning C4251: 'ceres::GradientProblemSolver::Summary::message': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of struct 'ceres::GradientProblemSolver::Summary'
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include\xstring(5155,29): message : see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\gradient_problem_solver.h(284,35): warning C4251: 'ceres::GradientProblemSolver::Summary::iterations': class 'std::vector<ceres::IterationSummary,std::allocator<ceres::IterationSummary>>' needs to have dll-interface to be used by clients of struct 'ceres::GradientProblemSolver::Summary'
1>C:\Work\5 Software Development\Vcpkg\installed\x64-windows\include\ceres\gradient_problem_solver.h(284,10): message : see declaration of 'std::vector<ceres::IterationSummary,std::allocator<ceres::IterationSummary>>'
1>Done building project "CeresSolver.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build started at 11:37 AM and took 03.283 seconds ==========