运行libsandbox [英] Running libsandbox

查看:275
本文介绍了运行libsandbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前工作的一个网上的C / C ++ /汇编编译器,我偶然发现了一个不错的软件称为libsandbox。这使我能够运行在线书面code,编译它,如果它们是由拦截系统调用。

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.

首先,我在Linux环境下是一种新的。我已经下载的tar.gz,打开包装,将其配置并进行安装。这种电脑采用了没有任何错误,但我现在有一个很难运行它。我怎么运行这个沙箱中的C / C ++程序?我必须养活它的.c / .cpp文件?编译后的可执行文件?

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?

这可能是一个非常愚蠢的问题。我搜索互联网上如何做到这一点,并且阅读其中的readme文件,但他们并没有给我一个线索。

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.

在此先感谢!

推荐答案

短期和一般的答案是:用LIB的任何的,你写的,利用该库的程序 - 你的#include< anything.h 的> 进入出处及链接与 -l的任何开关。你不应该找到任何可执行文件,除非它是一个测试套件或库中的示例程序。

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 -lanything switch. You're not supposed to find any executable files, unless it's a test suite or an example program for the library.

我没能找到libsandbox出于某种原因,所以我的回答可能是非常不准确的。

I wasn't able to find 'libsandbox' for some reason, so my reply might be grossly inaccurate.

这篇关于运行libsandbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆