I’m currently working on an online C/C++/assembly compiler, and I stumbled upon a nice piece of software called libsandbox. This enables me to run the online written code, compile it and intercept system calls if they’re made.
First of all, I’m kind of new in the Linux environment. I’ve download the tar.gz, unpacked it, configured it and make install it. This ran without any errors, but now I’m having a hard time running it. How am I supposed to run a C/C++ program in this sandbox? Do I have to feed it the .c/.cpp file? The executable after compiling?
It may be a very stupid question. I’ve searched on internet on how to do it, and read the readme file included but they didn’t gave me a clue.
Thanks in advance!
The short and general answer is: to use libanything, you write a program that utilizes that library – you
#include <anything.h>into the source and link with-lanythingswitch. You’re not supposed to find any executable files, unless it’s a test suite or an example program for the library.I wasn’t able to find ‘libsandbox’ for some reason, so my reply might be grossly inaccurate.