Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Not working with MSVC #3

Open
smaudet opened this issue Apr 29, 2024 · 5 comments
Open

Not working with MSVC #3

smaudet opened this issue Apr 29, 2024 · 5 comments

Comments

@smaudet
Copy link

smaudet commented Apr 29, 2024

Does not seem to compile (on windows), saw MSVC/template errors. Project should be more explicit about what is supported.

@thetredev
Copy link
Owner

I'm sorry lol I never thought anybody would ever use this project. MSVC is currently not supported.

@smaudet
Copy link
Author

smaudet commented Apr 30, 2024

@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.

@thetredev
Copy link
Owner

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?

@thetredev thetredev mentioned this issue Apr 30, 2024
5 tasks
@smaudet
Copy link
Author

smaudet commented Apr 30, 2024

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... ]

@thetredev
Copy link
Owner

Thanks a lot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants