User forums > Help

Can't compile on Gentoo

<< < (2/2)

thomas:

--- Quote from: oBFusCATed on November 24, 2010, 12:55:20 pm ---Thomas, Jens: Do you know if it is possible to make cb_console_runner to spit an error when terminal launching fails?
--- End quote ---
Well, that'd be something like changing that line 73 to:
int ret;
if((ret = system(cmdline)) == -1) printf("Error: failed to launch xterm. Make sure xterm is installed on your system");

Should be as trivial as that, but I have no Linux system to test.

Jenna:

--- Quote from: thomas on November 24, 2010, 05:25:41 pm ---
--- Quote from: oBFusCATed on November 24, 2010, 12:55:20 pm ---Thomas, Jens: Do you know if it is possible to make cb_console_runner to spit an error when terminal launching fails?
--- End quote ---
Well, that'd be something like changing that line 73 to:
int ret;
if((ret = system(cmdline)) == -1) printf("Error: failed to launch xterm. Make sure xterm is installed on your system");

Should be as trivial as that, but I have no Linux system to test.

--- End quote ---

If the terminal does not exist (xterm in this case, but others can be configured), cb_console_runner will not be started, because cb_console_runner is executed inside the termnal and not vice-versa.

So the correct place to check for the return-value would be in CompilerGCC::OnJobEnd, but only if we tried to run the exe and not after compiling or whatever.
So it's not just as trivial as it looks at first time.

Navigation

[0] Message Index

[*] Previous page

Go to full version