<div dir="ltr"><div>Hi Rcpp Devs,</div><div>Does anyone know how to fix this warning in a package with LinkingTo: RcppArmadillo? My package plotHMM <a href="https://www.stats.ox.ac.uk/pub/bdr/LTO/plotHMM.out">https://www.stats.ox.ac.uk/pub/bdr/LTO/plotHMM.out</a> got this message on CRAN Additional Checks LTO flavor, <a href="https://www.stats.ox.ac.uk/pub/bdr/LTO/README.txt">https://www.stats.ox.ac.uk/pub/bdr/LTO/README.txt</a><br></div><div>
<pre>g++ -std=gnu++14 -shared -L/usr/local/lib64 -o plotHMM.so RcppExports.o backward.o eln.o forward.o interface.o multiply.o pairwise.o transition.o viterbi.o
/data/gannet/ripley/R/test-4.2/RcppArmadillo/include/armadillo_bits/glue_solve_bones.hpp:84:10: warning: type ‘struct opts’ violates the C++ One Definition Rule [-Wodr]
   84 |   struct opts
      |          ^
/data/gannet/ripley/R/test-4.2/RcppArmadillo/include/armadillo_bits/glue_solve_bones.hpp:84:10: note: a different type is defined in another translation unit
   84 |   struct opts
      |          ^
/data/gannet/ripley/R/test-4.2/RcppArmadillo/include/armadillo_bits/glue_solve_bones.hpp:86:17: note: the first difference of corresponding definitions is field ‘flags’
   86 |     const uword flags;
      |                 ^
/data/gannet/ripley/R/test-4.2/RcppArmadillo/include/armadillo_bits/glue_solve_bones.hpp:86:17: note: a field of same name but different type is defined in another translation unit
   86 |     const uword flags;
      |                 ^</pre>

</div></div>