P
Paul Schwann
Hi everybody,
I have a problem with the following code:
#include <iostream>
int main(void) {
std::cout << std::hex << std::uppercase << 31 <<std::endl;
return 0;
}
It compiles fine with msvc 6.0 (windows) and gcc 3.3 (linux). If I
compile it under linux with some older gcc (2.95.3), it always complains
about the "uppercase" modifier, like:
test.cpp: In function `int main()':
test.cpp:4: `::uppercase' undeclared (first use here)
Question is: What can I do to make it run on all platforms: windows (vc
6.0) and linux/solaris (gcc 2.95, 3.3)?
Thanks for your help,
Paul
I have a problem with the following code:
#include <iostream>
int main(void) {
std::cout << std::hex << std::uppercase << 31 <<std::endl;
return 0;
}
It compiles fine with msvc 6.0 (windows) and gcc 3.3 (linux). If I
compile it under linux with some older gcc (2.95.3), it always complains
about the "uppercase" modifier, like:
test.cpp: In function `int main()':
test.cpp:4: `::uppercase' undeclared (first use here)
Question is: What can I do to make it run on all platforms: windows (vc
6.0) and linux/solaris (gcc 2.95, 3.3)?
Thanks for your help,
Paul