This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Issue with g++/gcc 5.2.0 on cygwin about string and std cout
- From: "Pat. N." <patrickng9 at yahoo dot ca>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 1 Oct 2015 17:35:51 -0700
- Subject: Issue with g++/gcc 5.2.0 on cygwin about string and std cout
- Authentication-results: sourceware.org; auth=none
Hi,
I'm running my C++ program on Cygwin, using g++ compiler version 5.2.0.
The std::string is hiding the output of std::cout.
For example, this simple program should show an output, but it's showing any:
#include <iostream>
int main()
{
std::string as = " 12345";
std::cout << "ABC" << as << std::endl;
return 0;
}
We should see "ABC 12345" but instead, we see "".
I don't know if the issue is on my side or on the g++/gcc side.
Did I do something wrong?