-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unresolved external symbol DynamicCostFunctionToFunctor #1022
Milestone
Comments
As a workaround, add the following code before including the ceres.h header. The CERES_EXPORT of DynamicCostFunctionToFunctor can be removed. #ifndef CERES_STATIC_DEFINE
#include "ceres/dynamic_cost_function.h"
#undef CERES_EXPORT_H
#define CERES_STATIC_DEFINE
#include <ceres/dynamic_cost_function_to_functor.h>
#undef CERES_STATIC_DEFINE
#else
#include <ceres/ceres.h>
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OS: Windows
Version: 2.2.0
IDE: Visual Studio 2022
Error Message:
Screen Shots
DynamicCostFunctionToFunctor is not export
Solution2
option 1: remove CERES_EXPORT of the class
option 2: It could be: define the
DynamicCostFunctionToFunctor
constructor in .cc fileThe text was updated successfully, but these errors were encountered: