-
Guest93
Hi
-
DataHoarder
can't compile release-v0.18 on latest fedora 43, command_line.h:187:8: error: definition with same mangled name '_ZN12command_line7add_argIbLb0ELb0ELi1EEEvRN5boost15program_options19options_descriptionERKNS_14arg_descriptorIT_XT0_EXT1_EXT2_EEEb' as another definition
-
DataHoarder
(somehow seraphis fork does work?)
-
m-relay_
<ofrnxmr:xmr.mx> Fcmp fork is of master
-
DataHoarder
yeah, but this is old code (last touched 2018)
-
m-relay_
<vtnerd:monero.social> I got this with clang-21 the other day. The fix isn't too bad, I'll issue a pr
-
DataHoarder
untouched in fcmp
-
DataHoarder
got a patch meanwhile for it?
-
m-relay_
<vtnerd:monero.social> Yeah just remove the `template<>` line and make the third parameter optional by defaulting to false
-
m-relay_
<vtnerd:monero.social> Hold on
-
m-relay_
<vtnerd:monero.social> Or make it true sorry
-
m-relay_
<vtnerd:monero.social> ```
-
m-relay_
<vtnerd:monero.social> ```
-
m-relay_
<vtnerd:monero.social> diff --git a/src/common/command_line.h b/src/common/command_line.h
-
m-relay_
<vtnerd:monero.social> index 681eb903b..a8a718012 100644
-
m-relay_
<vtnerd:monero.social> --- a/src/common/command_line.h
-
m-relay_
<vtnerd:monero.social> +++ b/src/common/command_line.h
-
m-relay_
<vtnerd:monero.social> @@ -207,8 +207,7 @@ namespace command_line
-
m-relay_
<vtnerd:monero.social> description.add_options()(arg.name, make_semantic(arg, def), arg.description);
-
m-relay_
<vtnerd:monero.social> }
-
m-relay_
<vtnerd:monero.social>
-
m-relay_
<vtnerd:monero.social> - template<>
-
m-relay_
<vtnerd:monero.social> - inline void add_arg(boost::program_options::options_description& description, const arg_descriptor<bool, false>& arg, bool unique)
-
m-relay_
<datahoarder:monero.social> ^
-
m-relay_
<datahoarder:monero.social> ```
-
m-relay_
<datahoarder:monero.social> monero/src/common/command_line.h:211:126: error: redefinition of default argument
-
m-relay_
<datahoarder:monero.social> 211 | inline void add_arg(boost::program_options::options_description& description, const arg_descriptor<bool, false>& arg, bool unique = true)
-
m-relay_
<datahoarder:monero.social> | ^ ~~~~
-
m-relay_
<datahoarder:monero.social> monero/src/common/command_line.h:187:140: note: previous definition is here
-
m-relay_
<datahoarder:monero.social> 187 | void add_arg(boost::program_options::options_description& description, const arg_descriptor<T, required, dependent, NUM_DEPS>& arg, bool unique = true)
-
m-relay_
<datahoarder:monero.social> ```
-
m-relay_
<vtnerd:monero.social> lol so much for an easy fix. what compiler is this?
-
m-relay_
<datahoarder:monero.social> clang 21.1.8
-
m-relay_
<vtnerd:monero.social> let me double check what I did previously, this was from memory
-
m-relay_
<vtnerd:monero.social> I dont know, this works with clang 21.1.8 on gentoo
-
m-relay_
<vtnerd:monero.social> was the `template<>` removed? I get that error if that line is not removed
-
m-relay_
<datahoarder:monero.social> right, I didn't remove it