Hi annu_shah;
1. Do you want to run both at the same time?
2. Or do you want to indicate in the CPP-routine, when you run the Arduino-sketch?
For 1). You can run your code in background and at the same time be running the Arduino sketch.Take a look
, you can use the nohup commands to do it.
For 2) if you want to run the CPP-routine by indicating it in the Arduino sketch, you could use system calls, something like:
system("gcc -o test.cpp out")
Or, if you want to add the Arduino-sketch in your CPP-routine, you will need to use something like mmi suggested in
By running
/sketch/sketch.elf /dev/ttyGS0 /dev/ttyGS0
With this you will run the last sketch that you have uploaded in your board.
I hope this answer your question.
-CMata