Hey, I'm able to compile files now. It was about linking the right boost libraries while compiling. The command that I ended up using to compile and successfully run the executable is: g++ example.cpp -lboost_iostreams -pthread -lboost_system -o ex
Thanks Marcus and Ryan! Cheers,Adi. On Friday, January 10, 2020, 12:30:01 AM GMT+4, Adithya Praveen <[email protected]> wrote: So I got to run the "example" executable in the "cpp/build" folder. I see the cartpole environment when I run the executable, and that's fine. However, I'm still having trouble compiling example.cpp myself. I can run an executable thats already present ("example" in this case), but I can't compile the code to create the executable myself. So I don't think the new cmake command made a noticeable difference. Here is the output from that command for your reference: -- /usr/lib/x86_64-linux-gnu/libboost_system.so/usr/lib/x86_64-linux-gnu/libboost_thread.so-lpthread/usr/lib/x86_64-linux-gnu/libboost_iostreams.so/usr/lib/x86_64-linux-gnu/libboost_chrono.so/usr/lib/x86_64-linux-gnu/libboost_date_time.so/usr/lib/x86_64-linux-gnu/libboost_atomic.so/usr/lib/x86_64-linux-gnu/libboost_regex.so Cheers,Adi. On Thursday, January 9, 2020, 11:46:47 PM GMT+4, Marcus Edel <[email protected]> wrote: Hello, Does it help if you run the configuration step with: cmake -DCMAKE_CXX_FLAGS="-lboost_system -lpthread -lboost_thread” Thanks,Marcus On 9. Jan 2020, at 20:14, Adithya Praveen <[email protected]> wrote: Hey Marcus, Here's the output you requested. -- /usr/lib/x86_64-linux-gnu/libboost_system.so/usr/lib/x86_64-linux-gnu/libboost_thread.so-lpthread/usr/lib/x86_64-linux-gnu/libboost_iostreams.so/usr/lib/x86_64-linux-gnu/libboost_chrono.so/usr/lib/x86_64-linux-gnu/libboost_date_time.so/usr/lib/x86_64-linux-gnu/libboost_atomic.so/usr/lib/x86_64-linux-gnu/libboost_regex.so-- Configuring done-- Generating done-- Build files have been written to: /home/adi/Desktop/Desktop/gsoc/rl/gym_tcp_api/cpp/build Cheers,Adi.
_______________________________________________ mlpack mailing list [email protected] http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack
