mirror / tclap Goto Github PK
View Code? Open in Web Editor NEWTemplatized C++ Command Line Parser mirror
Home Page: http://tclap.sourceforge.net/
License: MIT License
Templatized C++ Command Line Parser mirror
Home Page: http://tclap.sourceforge.net/
License: MIT License
clang version 16.0.3
Target: aarch64-unknown-linux-android24
Thread model: posix
InstalledDir: /data/data/com.termux/files/usr/bin
make -v
$ GNU Make 4.4.1
Built for aarch64-unknown-linux-android
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
1 ) git clone https://github.com/mirror/tclap.git
2) cd tclab
3) ./config.status
4)./configure --prefix=$PREFIX
5) make
make
Making all in include
make[1]: Entering directory '/data/data/com.termux/files/home/below_zero/tclap/include'
Making all in tclap
make[2]: Entering directory '/data/data/com.termux/files/home/below_zero/tclap/include/tclap'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/data/data/com.termux/files/home/below_zero/tclap/include/tclap'
make[2]: Entering directory '/data/data/com.termux/files/home/below_zero/tclap/include'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/data/data/com.termux/files/home/below_zero/tclap/include'
make[1]: Leaving directory '/data/data/com.termux/files/home/below_zero/tclap/include'
Making all in examples
make[1]: Entering directory '/data/data/com.termux/files/home/below_zero/tclap/examples'
g++ -DHAVE_CONFIG_H -I. -I../config -I../include -Wall -Wextra -g -O2 -Weffc++ -MT test30.o -MD -MP -MF .deps/test30.Tpo -c -o test30.o test30.cpp
In file included from test30.cpp:6:
In file included from ../include/tclap/CmdLine.h:27:
In file included from ../include/tclap/SwitchArg.h:32:
../include/tclap/Arg.h:417:9: error: call to function 'operator>>' that is neither visible in the template definition nor found by argument-dependent lookup
is >> destVal;
^
../include/tclap/ValueArg.h:408:5: note: in instantiation of function template specialization 'TCLAP::ExtractValue<std::pair<int, double>>' requested here
ExtractValue(_value, val, typename ArgTraits<T>::ValueCategory());
^
../include/tclap/ValueArg.h:368:13: note: in instantiation of member function 'TCLAP::ValueArg<std::pair<int, double>>::_extractValue' requested here
_extractValue( args[*i] );
^
test30.cpp:26:37: note: in instantiation of member function 'TCLAP::ValueArg<std::pair<int, double>>::processArg' requested here
ValueArg<std::pair<int, double> > parg("p", "pair", "int,double pair",
^
test30.cpp:14:15: note: 'operator>>' should be declared prior to the call site
std::istream &operator>>(std::istream &is, std::pair<int, double> &p) {
^
1 error generated.
make[1]: *** [Makefile:622: test30.o] Error 1
make[1]: Leaving directory '/data/data/com.termux/files/home/below_zero/tclap/examples'
make: *** [Makefile:404: all-recursive] Error 1
The documentation for ValueArg states
You could conceivably call this constructor with a blank flag, but that would make you a bad person. It would also cause an exception to be thrown. If you want an unlabeled argument, use the other constructor.
However, no such constructor exists. Often, short flags do not make sense, so it would be very cool to have a way of disabling them.
And glad to see some recent updates, even if they are just fixing typos :)
The new g++-11 (v11.1) fails to compile tclap 1.2 and even 1.4 in C++20 mode due to, I guess, an incorrect syntax used to prevent accidental copying of ValueArg, MultiArg. The syntax should be:
MultiArg(const MultiArg<T>& rhs); MultiArg& operator=(const MultiArg<T>& rhs);
Alternatively, these could be set to delete with C++11's syntax.
(Edit: please remove)
Hi! I was expecting to use this repository as a mirror from https://tclap.sourceforge.net/, but it seems like it is not a mirror, because the package files have different checksum.
wget https://sourceforge.net/projects/tclap/files/tclap-1.2.5.tar.gz
sha256sum tclap-1.2.5.tar.gz
bb649f76dae35e8d0dcba4b52acfd4e062d787e6a81b43f7a4b01275153165a6 tclap-1.2.5.tar.gz
wget https://github.com/mirror/tclap/archive/refs/tags/v1.2.5.tar.gz
sha256sum v1.2.5.tar.gz
7e87d13734076fa4f626f6144ce9a02717198b3f054341a6886e2107b048b235 v1.2.5.tar.gz
As you can see, the SHA-256 is different from the original. Is there any reason for having this mismatch?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.