Linking to libcurl suppresses output in emacs shell on windows

"K. Frank" <[email protected]>
Newsgroups gmane.emacs.windows
Message-ID <CAKEnbTNP4ObSiJcbFo5RS=Es6SapYqcTOFy-0Tp46FwSkYKnfQ@mail.gmail.com>
Hello List!

I am taking the liberty of cross-posting this message I had
sent to the libcurl list.

This behavior didn't ring any bells with the libcurl guys.
According to them:

   libcurl certainly doesn't do anything magic, as if you're using
   its default actions it simply sends the data to stdout.

Not urgent, but any help resolving this would be appreciated.


---------- Forwarded message ----------
From: K. Frank <>
Date: Sat, Oct 26, 2013 at 10:27 PM
Subject: Linking to libcurl suppresses output in emacs shell on windows
To: libcurl development <>

Hello List!

I have a simple c++ program that I build with g++ 4.8.1 from
mingw-w64 on 64-bit windows.  This program writes to cout.

When I run it in an emacs (version 23.1.1) shell (i.e., M-x shell)
the output shows up.  If I then non-trivially link the program
with libcurl (non-trivial in the sense that the program is modified
to actually use libcurl -- simply adding "-lcurldll' to the link
command for a program that doesn't actually reference anything
in libcurl doesn't have this effect), the output from the program
no longer shows up in the emacs shell.

This is with libcurl 64-bit 7.31.0, built (I believe) with mingw-w64.

If I run the program from a windows command prompt, the
output shows up normally.

Does anyone know what might be going on, and how I might fix
it?  This is not a show-stopper for me, but it is vaguely annoying,
and also somewhat puzzling.


Thanks for any advice.


K. Frank
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.