[computer-go] Strangest C++ problem yet
Peter Drake
drake at lclark.edu
Sat Sep 2 11:34:02 PDT 2006
Belay that last confusion -- that was the problem. Thanks!
Peter Drake
Assistant Professor of Computer Science
Lewis & Clark College
http://www.lclark.edu/~drake/
On Sep 2, 2006, at 11:25 AM, Gunnar Farnebäck wrote:
> Peter wrote:
>> void acknowledge(const string message = "") {
>> if (commandID >= 0) {
>> cout << "=" << commandID << " " << message << endl;
>> } else {
>> cout << "= " << message << endl;
>> }
>> }
>>
>> This works fine from the command line and through glGo, but it chokes
>> for gogui, Goban, and kgsGtp. Specifically, gogui complains that the
>> program never responds to the "name" command.
>>
>> Now here's the really strange part: if I change that last line to
>>
>> cout << "Acknowledging " << message << endl;
>>
>> it DOES produce output, although of course it's not a proper GTP
>> response.
>>
>> Again, either version behaves as expected on the command line or
>> through glGo.
>
> Unless "message" is already newline-terminated you need to add one
> more newline.
>
> /Gunnar
> _______________________________________________
> computer-go mailing list
> computer-go at computer-go.org
> http://www.computer-go.org/mailman/listinfo/computer-go/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://computer-go.org/pipermail/computer-go/attachments/20060902/9c3512e4/attachment.htm
More information about the computer-go
mailing list