Open smaudet opened 6 months ago
I'm sorry lol I never thought anybody would ever use this project. MSVC is currently not supported.
@thetredev It's fine I found a different project. I did like how you did the args a bit better than the competition (object refs instead of strings), but.
Thanks a lot. I'll see if I can add MSVC support this week. Could you please post the issues you were having, so I know better where to look?
parser::ArgumentParser args_parser(argc, argv, "tool");
auto arg = args_parser.add_positional("arg");
auto result = args_parser.get_positional<std::string>(arg);
0>int.h(31,53): Warning C4003 : not enough arguments for function-like macro invocation 'max'
0>int.h(31,53): Error C2589 : '(': illegal token on right side of '::'
0>long.h(28,54): Error C2766 : explicit specialization; 'cppargparse::argument<int64_t>' has already been defined
0>int.h(121): Reference : see previous definition of 'argument<__int64>'
0>long.h(43,64): Error C2766 : explicit specialization; 'cppargparse::argument<uint64_t>' has already been defined
0>int.h(120): Reference : see previous definition of 'argument<unsigned __int64>'
MSBuild For VS 2019, PlatformToolset v142
Output of cl:
cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30147 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
Thanks a lot!
Does not seem to compile (on windows), saw MSVC/template errors. Project should be more explicit about what is supported.