When player's solution is compiled, include an autogenerated hidden bn_player_solution.c file with autogenerated C code in the build process. The autogenerated code is the following changing the paths to the player's solution directory for the unit:
On Windows (and all operating systems) by calling the functions to reopen the standard i/o. The functions to tell, will give the number of bytes read or printed. Functions can be called from GDB with print or call
When player's solution is compiled, include an autogenerated hidden
bn_player_solution.c
file with autogenerated C code in the build process. The autogenerated code is the following changing the paths to the player's solution directory for the unit:Standard input and output must be redirect to files. On Unix the redirection may be done with the execution arguments:
On Windows (and all operating systems) by calling the functions to reopen the standard i/o. The functions to tell, will give the number of bytes read or printed. Functions can be called from GDB with
print
orcall