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
I would like to use cxxopts in several source files but it seems that it is not possible. I have compilation errors mentioning that there exists multiple definitions.
To have an example, I just take the one given in the source code and I have added sum.hpp and sum.cpp with the following content
I would like to use cxxopts in several source files but it seems that it is not possible. I have compilation errors mentioning that there exists multiple definitions.
To have an example, I just take the one given in the source code and I have added
sum.hpp
andsum.cpp
with the following contentAnd then I have added
and I have added the source file
sum.cpp
in theCMakeLists.txt
. When you compile this example, you will have multiple definitions error.The text was updated successfully, but these errors were encountered: