-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Out of scope
-
Affects Version/s: 4.8.1, 4.8.4
-
Fix Version/s: None
-
Component/s: Build tools: qmake, Core: Other
-
Labels:None
-
Environment:Mountain Lion
When compiling on Mountain Lion some std::iostream errors occur. A sample is below. This happens with gcc not clang. Initially I thought it was a change of compatibility in the version of gcc that ships with Xcode. But in a forum someone suggested changing the -mmacosx-version-min from 10.5 to 10.7 resolved the issue.
../CalcolatriceSensibile/mainTest.cpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’: ../CalcolatriceSensibile/mainTest.cpp:16: instantiated from here ../CalcolatriceSensibile/mainTest.cpp:16: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’ but no definition available ../CalcolatriceSensibile/mainTest.cpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’: ../CalcolatriceSensibile/mainTest.cpp:16: instantiated from here ../CalcolatriceSensibile/mainTest.cpp:16: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’ but no definition available ../CalcolatriceSensibile/mainTest.cpp: In instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’: ../CalcolatriceSensibile/mainTest.cpp:16: instantiated from here ../CalcolatriceSensibile/mainTest.cpp:16: error: explicit instantiation of ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’ but no definition available make: *** [mainTest.o] Error 1