I am very new to C++. I am trying to compile a C++ program which requires some library such as libcurl.a and libcjose.so.0. The compilation is successful and I can run the program in my machine which has those libraries installed.
But when I tried to copy the binary only to another machine, it complains I am missing those libraries:
error while loading shared libraries: libcjose.so.0: cannot open shared object file: No such file or directory
Just wonder is there a way for my to copy/compile the binary only without install those libraries in another machine again?