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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux