简体   繁体   中英

Extending C++ with scripting

I am thinking in the possibility of extending a C++ program calling a scripting languages. I have been searching and reading SWIG documentation, but all the examples speaks only about calling C++ libraries from scripting language, but not in the other way. Is possible with SWIG calling to PHP, or Java from C++ program? If it's not possible, what could better, boost.python or LUA?

its not c++ but it should work

char *argsa[] = {"/bin/bash","-c","script",(char *) 0 };
int execReturn = execv("/bin/bash",argsa);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM