diff --git a/include/tclap/UnlabeledMultiArg.h b/include/tclap/UnlabeledMultiArg.h index d3324c3..b6988f7 100644 --- a/include/tclap/UnlabeledMultiArg.h +++ b/include/tclap/UnlabeledMultiArg.h @@ -28,6 +28,8 @@ #include #include +#include + using namespace std; namespace TCLAP { @@ -40,6 +42,17 @@ namespace TCLAP { template class UnlabeledMultiArg : public MultiArg { +#ifdef TWO_STAGE_NAME_LOOKUP + //If compiler has two stage name lookup (as gcc >= 3.4 does) + //this is requried to prevent undef. symbols + using MultiArg::_ignoreable; + using MultiArg::_hasBlanks; + using MultiArg::_extractValue; + using MultiArg::_typeDesc; + using MultiArg::_name; + using MultiArg::_description; +#endif + public: /** diff --git a/include/tclap/UnlabeledValueArg.h b/include/tclap/UnlabeledValueArg.h index 8e9b613..0f74994 100644 --- a/include/tclap/UnlabeledValueArg.h +++ b/include/tclap/UnlabeledValueArg.h @@ -43,6 +43,19 @@ namespace TCLAP { template class UnlabeledValueArg : public ValueArg { + +#ifdef TWO_STAGE_NAME_LOOKUP + //If compiler has two stage name lookup (as gcc >= 3.4 does) + //this is requried to prevent undef. symbols + using ValueArg::_ignoreable; + using ValueArg::_hasBlanks; + using ValueArg::_extractValue; + using ValueArg::_typeDesc; + using ValueArg::_name; + using ValueArg::_description; + using ValueArg::_alreadySet; +#endif + public: /**