I have compiled my code using the command and everything seems to be fine:
c++ --std=c++11 tcpserverV2.cpp -o tcpserverV2 -I/usr/local/include/mongocxx/v_noabi \ -I/usr/local/include/libmongoc-1.0 -I/usr/local/include/bsoncxx/v_noabi \ -I/usr/local/include/libbson-1.0 -L/usr/local/lib -lmongocxx -lbsoncxx
, but when i try to run ./tcpserverV2 I am greeted with this message:
./tcpserverV2: error while loading shared libraries: libmongocxx.so._noabi: cannot open shared object file: No such file or directory
It says no such file or directory but It shows that it was downloaded and installed properly when I installed the c++ driver. I’m not sure if there is something I am leaving out when im compiling or if there is some sort of simple workaround to this. Any help or guidance is greately appreciated!