File: fix-build-on-armhf-multiple-definitions.patch

package info (click to toggle)
g2o 0~20230806-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,216 kB
  • sloc: cpp: 43,690; ansic: 1,204; yacc: 195; lex: 173; makefile: 91; sh: 33
file content (25 lines) | stat: -rw-r--r-- 1,153 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Author: Dima Kogan <dkogan@debian.org>
Description: https://github.com/RainerKuemmerle/g2o/issues/721
diff --git a/g2o/types/sim3/types_seven_dof_expmap.h b/g2o/types/sim3/types_seven_dof_expmap.h
index b01fcfb..1ff1459 100644
--- a/g2o/types/sim3/types_seven_dof_expmap.h
+++ b/g2o/types/sim3/types_seven_dof_expmap.h
@@ -47,18 +47,12 @@
 #else
 // Not Microsoft compiler so set empty definition:
 #define G2O_TYPES_SIM3_API
 #endif
 namespace g2o {
 
-// 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>;
-
 /**
  * \brief Sim3 Vertex, (x,y,z,qw,qx,qy,qz)
  * the parameterization for the increments constructed is a 7d vector
  * (x,y,z,qx,qy,qz) (note that we leave out the w part of the quaternion.
  *
  * Will represent relative transformation between two cameras