Double include errors with StringUtils
The functions declared in StringUtils.h
are also defined/implemented in StringUtils.h
(there is no corresponding .cpp
file).
If somebody tries to #include "StringUtils.h"
two files within a given libX
of labRemote
, they will get double include errors when the linker goes to work.
We should make a StringUtils.cpp
and move all function implementations to that to avoid this problem.
The reason we haven't seen this yet is that StringUtils
is used only in two places so far, and the two cases are in separate libX
's , which each get compiled down to separate shared libraries.
Tagging @cchan who is seeing this issue.