ondra-novak / mmbot

Market Making trading bot for cryptomarkets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rptbroker.dir chyba

seekaaj opened this issue · comments

commented

Dobrý den,

při posledním update Version: 2.22.2-2-gfa7e3e4 na Ubuntu 18.04.5 LTS vyskakuje při kompilaci chyba

src/brokers/rptbroker/database.h:186:12: sorry, unimplemented: non-trivial designated initializers not supported
     if (!fn(pos, hdr, Payload{recTraderInfo, .tinfo = &nfo})) return;
          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To samé pak pro řádek 191, 198 a 204. Takže kompilace skončí celkovou chybou.

src/brokers/rptbroker/CMakeFiles/rptbroker.dir/build.make:62: recipe for target 'src/brokers/rptbroker/CMakeFiles/rptbroker.dir/main.cpp.o' failed
make[2]: *** [src/brokers/rptbroker/CMakeFiles/rptbroker.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:293: recipe for target 'src/brokers/rptbroker/CMakeFiles/rptbroker.dir/all' failed
make[1]: *** [src/brokers/rptbroker/CMakeFiles/rptbroker.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Done

Zdá se, že některé překladače neberou zápis nových inicializátorů, přestože to gcc-9 bere v pohodě. Přepsal jsem tu část postaru.

commented

Teď už kompilace proběhla bez potíží. Díky.