This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Issue with g++/gcc 5.2.0 on cygwin about string and std cout


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]