fresh install, when I run a c++ program I made from a cygterm it logs out

Takashi Yano takashi.yano@nifty.ne.jp
Mon Oct 14 19:21:29 GMT 2024


On Mon, 14 Oct 2024 09:15:02 -0700
jeff wrote:
> I wrote a program called lines.cpp, which is line wc.
> It works fine when I run it from a windows terminal or windows command.
> 
> When I run it from bash, on my u disk, it works fine:
> 
> jdeifik@epyc-milan-64 /cygdrive/u
> $ lines john.conf
> c: 131785  w: 21581  l:  4505  LP p:  67  longest l: 292   john.conf
> 
> When I run wc from my k disk it works.
> When I run lines from my k disk, it pauses, then logs out:
> 
> jdeifik@epyc-milan-64 /cygdrive/k/pw-crack/fred_john/run
> $ wc john.conf
>    4505  21585 131785 john.conf
> 
> jdeifik@epyc-milan-64 /cygdrive/k/pw-crack/fred_john/run
> $ lines john.conf
> 
> jdeifik@epyc-milan-64 /cygdrive/k/pw-crack/fred_john/run
> $
> logout
> 
> I thought the behavior odd, so I removed cygwin, and I did a fresh 
> install today.
> The problem still persists.
> 
> I am including the source for lines.cpp, though not all the libraries 
> needed to build it.
> 
> Any ideas?

Please provide full reproducible test case as well as
steps to reproduce.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>


More information about the Cygwin mailing list