Reputation: 123
I want to use ceres-solver for curve fitting, I am very beginner at this and I don't know where to start, I am using Visual studio 2022 and vcpkg, but I could not make the test program to compile, the errors are C1189 " <glog/logging.h> was not included correctly..., here is the example code (from Google examples at https://ceres-solver.googlesource.com/ceres-solver/+/master/examples/helloworld.cc:
// Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2023 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// * Neither the name of Google Inc. nor the names of its contributors may be
// used to endorse or promote products derived from this software without
// specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
// Author: [email protected] (Keir Mierle)
//
// A simple example of using the Ceres minimizer.
//
// Minimize 0.5 (10 - x)^2 using jacobian matrix computed using
// automatic differentiation.
#include "absl/log/initialize.h"
#include "ceres/ceres.h"
// A templated cost functor that implements the residual r = 10 -
// x. The method operator() is templated so that we can then use an
// automatic differentiation wrapper around it to generate its
// derivatives.
struct CostFunctor {
template <typename T>
bool operator()(const T* const x, T* residual) const {
residual[0] = 10.0 - x[0];
return true;
}
};
int main(int argc, char** argv) {
absl::InitializeLog();
// The variable to solve for with its initial value. It will be
// mutated in place by the solver.
double x = 0.5;
const double initial_x = x;
// Build the problem.
ceres::Problem problem;
// Set up the only cost function (also known as residual). This uses
// auto-differentiation to obtain the derivative (jacobian).
ceres::CostFunction* cost_function =
new ceres::AutoDiffCostFunction<CostFunctor, 1, 1>();
problem.AddResidualBlock(cost_function, nullptr, &x);
// Run the solver!
ceres::Solver::Options options;
options.minimizer_progress_to_stdout = true;
ceres::Solver::Summary summary;
ceres::Solve(options, &problem, &summary);
std::cout << summary.BriefReport() << "\n";
std::cout << "x : " << initial_x << " -> " << x << "\n";
return 0;
}
I installed all dependencies and libraries, tried to build vcpkg and the packages several times with static and dynamic modes with several setups that I found on the net, like building from source and including one by one in the linker input option. can any one guide me to a simple way to make the ceres solver working for me.
searched and troubleshoot the vcpkg, and packages, tried static and dynamic linking, tried several examples that I found on the net that claimed to be working but all the time I have the glog and/or ceres related problems, so I think I am not using the right setup, I hope that some one guide me to make it working on Visual Studio 2022.
Update: I already tried the solution in the mentioned question[ [https://stackoverflow.com/questions/77912257/error-glog-logging-h-was-not-included-correctly-in-including-glog-in-c-pr][1]], but did not work for me, even the accepted solution is commented as depricated, here is a sample of the compiler output as requested (the output is more than 30000 char accepted here):
Severity Code Description Project File Line Suppression State Details
Severity Code Description Project File Line Suppression State Details
Error C1189 #error: <glog/logging.h> was not included correctly. See the documentation for how to consume the library. ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 60
Error (active) E0840 a template argument list is not allowed in a declaration of a primary template ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\array_selector.h 70
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\cost_function.h 120
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\cost_function.h 124
Error (active) E0341 'operator[]' must be a member function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 214
Error (active) E0020 identifier "value_type" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 308
Error (active) E0239 invalid specifier outside a class declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 312
Error (active) E0898 nonmember operator requires a parameter with class or enum type ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 312
Error (active) E0898 nonmember operator requires a parameter with class or enum type ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 329
Error (active) E0757 function "FixedArray" is not a type name ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 329
Error (active) E0757 function "FixedArray" is not a type name ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 329
Error (active) E0239 invalid specifier outside a class declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 333
Error (active) E0898 nonmember operator requires a parameter with class or enum type ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 333
Error (active) E0757 function "FixedArray" is not a type name ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 333
Error (active) E0757 function "FixedArray" is not a type name ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 333
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 337
Error (active) E0020 identifier "value_type" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 366
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\fixed_array.h 464
Error (active) E0035 #error directive: <glog/flags.h> was not included correctly. See the documentation for how to consume the library. ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\flags.h 45
Error (active) E0020 identifier "GLOG_EXPORT" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\flags.h 105
Error (active) E0020 identifier "GLOG_EXPORT" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\flags.h 106
Error (active) E0020 identifier "GLOG_EXPORT" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\flags.h 111
Error (active) E0020 identifier "GLOG_EXPORT" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\flags.h 112
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\flags.h 115
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\flags.h 118
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\flags.h 121
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\flags.h 124
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\flags.h 127
Error (active) E0020 identifier "GLOG_EXPORT" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\flags.h 134
Error (active) E0840 a template argument list is not allowed in a declaration of a primary template ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\integer_sequence_algorithm.h 74
Error (active) E0840 a template argument list is not allowed in a declaration of a primary template ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\integer_sequence_algorithm.h 81
Error (active) E0840 a template argument list is not allowed in a declaration of a primary template ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\integer_sequence_algorithm.h 88
Error (active) E0840 a template argument list is not allowed in a declaration of a primary template ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\integer_sequence_algorithm.h 94
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\integer_sequence_algorithm.h 288
Error (active) E0135 namespace "ceres" has no member "Jet" ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\jet.h 199
Error (active) E0439 expected a '>' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\jet.h 199
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\jet.h 199
Error (active) E0135 namespace "ceres" has no member "Jet" ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\jet.h 204
Error (active) E0439 expected a '>' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\jet.h 204
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\jet.h 204
Error (active) E0135 namespace "std" has no member "midpoint" ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\jet.h 505
Error (active) E0842 template parameter "T" is not used in or cannot be deduced from the template argument list of class template "UnderlyingScalar<<error-type>, void>" ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\jet_traits.h 76
Error (active) E0842 constant "N" is not used in or cannot be deduced from the template argument list of class template "UnderlyingScalar<<error-type>, void>" ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\jet_traits.h 76
Error (active) E0864 Jet is not a template ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\jet_traits.h 77
Error (active) E0842 template parameter "T" is not used in or cannot be deduced from the template argument list of class template "Rank<<error-type>, void>" ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\jet_traits.h 122
Error (active) E0842 constant "N" is not used in or cannot be deduced from the template argument list of class template "Rank<<error-type>, void>" ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\jet_traits.h 122
Error (active) E0864 Jet is not a template ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\jet_traits.h 123
Error (active) E0864 Jet is not a template ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\jet_traits.h 142
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\jet_traits.h 147
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\jet_traits.h 221
Error (active) E0035 #error directive: <glog/logging.h> was not included correctly. See the documentation for how to consume the library. ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 60
Error (active) E0070 incomplete type "google::GLOG_EXPORT" is not allowed ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 82
Error (active) E0980 call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 83
Error (active) E0067 expected a '}' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 83
Error (active) E0771 'explicit' is not allowed ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 84
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 84
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 87
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 90
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 93
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 94
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 104
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 107
Error (active) E0029 expected an expression ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 690
Error (active) E0067 expected a '}' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 692
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 694
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 702
Error (active) E0077 this declaration has no storage class or type specifier ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 830
Error (active) E0077 this declaration has no storage class or type specifier ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 831
Error (active) E0077 this declaration has no storage class or type specifier ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 832
Error (active) E0077 this declaration has no storage class or type specifier ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 833
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 836
Error (active) E0020 identifier "Counter_t" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1032
Error (active) E0070 incomplete type "base_logging::GLOG_EXPORT" is not allowed ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1198
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1198
Error (active) E0070 incomplete type "logging::internal::GLOG_NO_EXPORT" is not allowed ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1215
Error (active) E0070 incomplete type "GLOG_EXPORT" is not allowed ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1228
Error (active) E0020 identifier "LogSeverity" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1314
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1319
Error (active) E0020 identifier "LogSeverity" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1319
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1325
Error (active) E0020 identifier "LogSeverity" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1325
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1331
Error (active) E0020 identifier "LogSeverity" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1331
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1335
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1338
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1359
Error (active) E0020 identifier "int64" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1362
Error (active) E0020 identifier "LogMessageTime" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1364
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1365
Error (active) E0020 identifier "LogSeverity" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1369
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1369
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1370
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1371
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1372
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1373
Error (active) E0020 identifier "LogMessageTime" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1374
Error (active) E1670 a type qualifier is not allowed on a nonmember function ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1374
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1376
Error (active) E0020 identifier "reason" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1393
Error (active) E0020 identifier "int64" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1396
Error (active) E0020 identifier "NUM_SEVERITIES" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1396
Error (active) E0757 variable "logging::internal::LogMessageData" is not a type name ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1400
Error (active) E0757 variable "logging::internal::LogMessageData" is not a type name ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1401
Error (active) E0020 identifier "LogMessageTime" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1402
Error (active) E0239 invalid specifier outside a class declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1404
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1405
Error (active) E0070 incomplete type "GLOG_EXPORT" is not allowed ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1410
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1410
Error (active) E0020 identifier "LogSeverity" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1420
Error (active) E0757 variable "GLOG_EXPORT" is not a type name ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1434
Error (active) E0147 declaration is incompatible with type "std::ostream" (declared at line 231 of "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\iosfwd") ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1434
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1434
Error (active) E0070 incomplete type "GLOG_EXPORT" is not allowed ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1437
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1437
Error (active) E0077 this declaration has no storage class or type specifier ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1484
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1484
Error (active) E0077 this declaration has no storage class or type specifier ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1489
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1489
Error (active) E0077 this declaration has no storage class or type specifier ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1496
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1496
Error (active) E0077 this declaration has no storage class or type specifier ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1505
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1505
Error (active) E0070 incomplete type "GLOG_EXPORT" is not allowed ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1513
Error (active) E0029 expected an expression ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1514
Error (active) E0067 expected a '}' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1515
Error (active) E0239 invalid specifier outside a class declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1520
Error (active) E0020 identifier "LogSeverity" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1520
Error (active) E0020 identifier "LogMessageTime" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1522
Error (active) E0077 this declaration has no storage class or type specifier ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1525
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1526
Error (active) E0239 invalid specifier outside a class declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1643
Error (active) E0239 invalid specifier outside a class declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1646
Error (active) E0239 invalid specifier outside a class declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1651
Error (active) E0145 function "base::Flush" may not be initialized ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1651
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1740
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\logging.h 1742
Error (active) E0035 #error directive: <glog/log_severity.h> was not included correctly. See the documentation for how to consume the library. ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\log_severity.h 38
Error (active) E0144 a value of type "ceres::AutoDiffCostFunction<CostFunctor, 1, 1> *" cannot be used to initialize an entity of type "ceres::CostFunction *" ceresTest D:\GitHub\ceresTest\main.cpp 63
Error (active) E0289 no instance of constructor "ceres::AutoDiffCostFunction<CostFunctor, kNumResiduals, Ns...>::AutoDiffCostFunction [with CostFunctor=CostFunctor, kNumResiduals=1, Ns=<1>]" matches the argument list ceresTest D:\GitHub\ceresTest\main.cpp 63
Error (active) E0864 _Iter_value_t is not a template ceresTest C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\numeric 96
Error (active) E0864 _Enable_if_execution_policy_t is not a template ceresTest C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\numeric 102
Error (active) E0864 _Enable_if_execution_policy_t is not a template ceresTest C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\numeric 105
Error (active) E0864 _Enable_if_execution_policy_t is not a template ceresTest C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include\numeric 111
Error (active) E0864 ParameterDims is not a template ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\parameter_dims.h 119
Error (active) E0169 expected a declaration ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\internal\parameter_dims.h 121
Error (active) E0020 identifier "LinearSolverType" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\solver.h 327
Error (active) E0020 identifier "SPARSE_NORMAL_CHOLESKY" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\solver.h 331
Error (active) E0020 identifier "LinearSolverType" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\solver.h 930
Error (active) E0020 identifier "LinearSolverType" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\solver.h 942
Error (active) E0020 identifier "LinearSolverType" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\types.h 452
Error (active) E0020 identifier "LinearSolverType" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\types.h 454
Error (active) E0020 identifier "LinearSolverType" is undefined ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\ceres\types.h 525
Error (active) E0260 explicit type is missing ('int' assumed) ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\vlog_is_on.h 130
Error (active) E0065 expected a ';' ceresTest C:\dev\vcpkg\installed\x64-windows-static\include\glog\vlog_is_on.h 130
Upvotes: 0
Views: 46