You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building under Solaris 11 with gcc 4.6.3 (downloaded from OpenCSW), any use of the standard library class map generates error messages. For example:
./sources/LUAClient.cpp:56:4: error: reference to map is ambiguous
/usr/include/net/if.h:97:9: error: candidates are: struct map
/opt/csw/lib/gcc/i386-pc-solaris2.10/4.6.3/../../../../include/c++/4.6.3/bits/stl_map.h:88:11: error: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
i.e. there's a conflict between the system type struct map and C++ library class map.
Solution is to specify std::map in order to remove the ambiguity. Will submit pull request separately.
The text was updated successfully, but these errors were encountered:
When building under Solaris 11 with gcc 4.6.3 (downloaded from OpenCSW), any use of the standard library class map generates error messages. For example:
./sources/LUAClient.cpp:56:4: error: reference to map is ambiguous
/usr/include/net/if.h:97:9: error: candidates are: struct map
/opt/csw/lib/gcc/i386-pc-solaris2.10/4.6.3/../../../../include/c++/4.6.3/bits/stl_map.h:88:11: error: template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map
i.e. there's a conflict between the system type struct map and C++ library class map.
Solution is to specify std::map in order to remove the ambiguity. Will submit pull request separately.
The text was updated successfully, but these errors were encountered: