cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Execute other language from C++
Execute other language from C++
Dec 14, 2015 at 4:43pm UTC
xhendos
(2)
Dear C++ community;
Would it be possible to execute another language from cPlusPlus, for example a python-script?
Thanks anyway!
Dec 14, 2015 at 4:44pm UTC
closed account (
1vD3vCM9
)
you can execute ASM, But besides that i think you need libraries. i may be wrong.
Dec 14, 2015 at 5:09pm UTC
Thomas1965
(4571)
Yes you can embed python in c++:
http://www.codeproject.com/Articles/11805/Embedding-Python-in-C-C-Part-I
Dec 14, 2015 at 5:12pm UTC
MikeyBoy
(5631)
Trivially, you can simply make a system call to execute a Python script.
If you want to be more clever, and actually have Python and C++ code calling each other within the same application, there's Boost.Python:
http://www.boost.org/doc/libs/1_59_0/libs/python/doc/index.html
Topic archived. No new replies allowed.