So I successfully installed Box2d into my Linux machine then I tried running the HelloWorld.cpp from the default download.
I used
But an error appears and says
I'm not so good with linux and compiling through bash but I want to learn and I'm having trouble wit this error.
I used
Code:
g++ -c HelloWorld.cpp
g++ -o main HelloWorld.cpp -lBox2D
./main
g++ -o main HelloWorld.cpp -lBox2D
./main
But an error appears and says
Code:
./main: error while loading shared libraries: libBox2D.so.2.1.0: cannot open shared object file: No such file or directory
I'm not so good with linux and compiling through bash but I want to learn and I'm having trouble wit this error.