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:40:37 GMT 2024
On Mon, 14 Oct 2024 12:31:37 -0700
jeff wrote:
> On 10/14/2024 12:21, Takashi Yano wrote:
> > 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.
> >
> It is a bit too complicated to have a reproducible test case.
> It does seem very directory dependent.
> /cygdrive/k/pw-crack\fred_john\run\john.conf - when I run lines, it logs out
> /cygdrive/k/pw-crack\fred_john\john.conf - when I run lines, it works
> successfully.
How can we compile the test case?
Your inhex.cpp cannot be compiled due to many errors, such as
missing local headers.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
More information about the Cygwin
mailing list