-
Notifications
You must be signed in to change notification settings - Fork 802
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
Incomplete type 'gtsam::HybridGaussianFactorGraph' #1382
Comments
Fix is to include in the .h file (even though the usage is only in the .cpp file). |
I can add it in next PR |
@varunagrawal maybe I misunderstood: you mean the .h file in your project, and hence it is not a GTSAM issue? In that case I'll close again. |
@dellaert I am rethinking this issue and I find it odd that a user needs to include |
What happens if you don’t use ::shared_ptr, but use boost::shared_ptr instead? |
That works! Adding it to #1387 |
Description
Compiling a project that uses GTSAM's new hybrid module throws an error
This error only happens when compiling a project that depends on GTSAM.
The RCA is that the
#include
forHybridGaussianFactorGraph
was removed and replaced with a forward declaration. The forward declaration works within the GTSAM framework but errors out once we go to an external project.Tagging @dellaert for his information.
Steps to reproduce
HybridNonlinearFactorGraph
.Expected behavior
External project should compile cleanly.
Environment
Additional information
The text was updated successfully, but these errors were encountered: