Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors under Solaris 11 #105

Open
EwanColdicott opened this issue Apr 12, 2013 · 1 comment
Open

Build errors under Solaris 11 #105

EwanColdicott opened this issue Apr 12, 2013 · 1 comment

Comments

@EwanColdicott
Copy link

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.

@EwanColdicott
Copy link
Author

Pull request #106 submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant