Process terminated with status of 255.show the return code of your application.
./yourApp
echo $?
I suspect your program doesn't have a return statement or return -1.
No, it has a perfectly adequate return 0QuoteProcess terminated with status of 255.show the return code of your application.
I am pretty sure that that return code is bot from my program but from the process invoked to run my program.
I suggest to check the 'pause when execution ends' in project properties.
I had already checked, and it is. All my years of experience suggest that the problem occurs before my program starts. I get three messages in the build log window
Checking for existence: /home/pi/myprogs/test2/bin/Debug/test2
Executing: xterm -T test2 -e /usr/bin/cb_console_runner_LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/pi/myprogs/test2/bin/Debug/test2 (in /home/pi/myprogs/test2/.)
Process terminated with status 255 (0 minutes 1 seconds)
In console:CodeThe second line will show the last return code../yourApp
echo $?
(and it should be the same as reported by the IDE).
first line executes program, second line outputs nothing or was that supposed to be a batch file?
Thanks for trying
Francis
xterm -T test2 -e /home/pi/myprogs/test2/bin/Debug/test2