How to use SYSTEM$() to run C++ script
#1
I should start by saying, I know that SYSTEM$ isn't really meant to run C++ programs, but I figured, in theory, it should work.

I have a very small C++ application that retrieves some information via web api to retrieve some live data on the internet. The C++ compiled with no issues and runs perfectly.

My Yab:

Code:
#! /bin/yab

PRINT SYSTEM$("./myApp")

The C++ program when ran in Terminal outputs a single line of text. I want to DRAW TEXT to a window. That wasn't working, so I figured I'd just use PRINT to get something in the console to see if that was working... it wasn't. All files are in the same working directory.

Help?
Reply


Messages In This Thread
How to use SYSTEM$() to run C++ script - by PurpleStudio - 10-07-2025, 04:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)
Free Web Hosting