tspooner / rl_markets

Market Making via Reinforcement Learning
https://arxiv.org/abs/1804.04216v1
BSD 3-Clause "New" or "Revised" License
313 stars 105 forks source link

build failed #1

Closed stanleywu111 closed 6 years ago

stanleywu111 commented 6 years ago

Hi I try to build this project on the windows linux subsystem with gcc version 5.4, and I get the following error:

/mnt/d/rl_markets/src/market/book.cpp:257:54: error: call of overloaded ‘make_unique(double&, long int&, long int)’ is ambiguous
         open_orders.emplace(price, make_unique<Order>(price, size, volume(price)));
                                                      ^
In file included from /mnt/d/rl_markets/src/market/book.cpp:4:0:
/mnt/d/Strategies/rl_markets/include/utilities/memory.h:5:20: note: candidate: std::unique_ptr<_Tp> make_unique(Args&& ...) [with T = market::Orde
r; Args = {double&, long int&, long int}]
 std::unique_ptr<T> make_unique( Args&& ...args )
                    ^
In file included from /usr/include/c++/5/memory:81:0,
                 from /mnt/d/Strategies/rl_markets/include/market/order.h:4,
                 from /mnt/d/Strategies/rl_markets/include/market/book.h:10,
                 from /mnt/d/Strategies/rl_markets/src/market/book.cpp:1:
/usr/include/c++/5/bits/unique_ptr.h:764:5: note: candidate: typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp
 = market::Order; _Args = {double&, long int&, long int}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<market::Order>]
     make_unique(_Args&&... __args)
     ^
src/CMakeFiles/rl_engine.dir/build.make:278: recipe for target 'src/CMakeFiles/rl_engine.dir/market/book.cpp.o' failed
make[2]: *** [src/CMakeFiles/rl_engine.dir/market/book.cpp.o] Error 1
CMakeFiles/Makefile2:220: recipe for target 'src/CMakeFiles/rl_engine.dir/all' failed
make[1]: *** [src/CMakeFiles/rl_engine.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
LimingFang commented 4 years ago

hey, i met this problem too. How did you solve that? Thanks in advance @stanleywu111