Skip to content

Commit

Permalink
Merge pull request #727 from RainerKuemmerle/rainer/fix721
Browse files Browse the repository at this point in the history
Add workaround for multiple definitions
  • Loading branch information
RainerKuemmerle authored Oct 21, 2023
2 parents 5196040 + a601119 commit 63cdadf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions g2o/types/sim3/types_seven_dof_expmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@
#endif
namespace g2o {

#ifdef _MSC_VER
// explicit instantiation of BaseVertex, if not instantiated causes already
// defined error in some cases (msvc debug only) see links below
// https://stackoverflow.com/questions/44960760/msvc-dll-exporting-class-that-inherits-from-template-cause-lnk2005-already-defin
// https://developercommunity.visualstudio.com/content/problem/224597/linker-failing-because-of-multiple-definitions-of.html
template class BaseVertex<7, Sim3>;
#endif

/**
* \brief Sim3 Vertex, (x,y,z,qw,qx,qy,qz)
Expand Down

0 comments on commit 63cdadf

Please sign in to comment.