You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since libsrcml and srcSAX both have a class named srcSAXController, they can't both be used in one executable with static linkage. (I see this problem when trying to use them both on Windows, but I think it would actually happen on Linux as well, since both platforms use archives of object files for their static libraries.) A solution would be to put put this library's code in a namespace, to reduce the number of global names it adds and prevent collisions.
(In general, srcSAX's contents should probably be namespaced to prevent these issues. Google's C++ style guide says:
With few exceptions, place code in a namespace... Namespaces wrap the entire source file after includes, gflags, definitions/declarations and forward declarations of classes from other namespaces.
)
The text was updated successfully, but these errors were encountered:
Since libsrcml and srcSAX both have a class named srcSAXController, they can't both be used in one executable with static linkage. (I see this problem when trying to use them both on Windows, but I think it would actually happen on Linux as well, since both platforms use archives of object files for their static libraries.) A solution would be to put put this library's code in a namespace, to reduce the number of global names it adds and prevent collisions.
(In general, srcSAX's contents should probably be namespaced to prevent these issues. Google's C++ style guide says:
)
The text was updated successfully, but these errors were encountered: