nan icon indicating copy to clipboard operation
nan copied to clipboard

Add required compiler versions in the error msg

Open apaatsio opened this issue 9 years ago • 5 comments

Save the users a Google search and tell them what compiler version they need.

See: https://github.com/nodejs/nan/issues/448

apaatsio avatar Jan 28 '16 10:01 apaatsio

This would need an MSVC version too for completeness

rvagg avatar Jan 28 '16 10:01 rvagg

I do not like it. Listing versions explicitly is too much detail. There can still be discrepancies, compiler bugs, vendors not applying the right patches, wrong flags and so on. Not to mention that no version of msvc truly has proper C++11 support yet.

The code which produces the error message mostly relies on feature detection, and it is merely there as convenience to limit the number of frivolous issues due to not grokking the compiler error which would be produced otherwise. What will happen when the next compiler comes along and is not listed?

On Thursday 28 January 2016 02:29:44 Antti Ahti wrote:

Save the users a Google search and tell them what compiler version they need.

See: https://github.com/nodejs/nan/issues/448 You can view, comment on, or merge this pull request online at:

https://github.com/nodejs/nan/pull/536

-- Commit Summary --

  • Add required compiler versions in the error msg

-- File Changes --

M nan.h (2)

-- Patch Links --

https://github.com/nodejs/nan/pull/536.patch https://github.com/nodejs/nan/pull/536.diff


Reply to this email directly or view it on GitHub: https://github.com/nodejs/nan/pull/536

kkoopa avatar Jan 28 '16 11:01 kkoopa

Yeah, it's a trade-off between "more useful error message for most users" and "not so useful but accurate error message"

apaatsio avatar Jan 28 '16 21:01 apaatsio

Clang 3.3 has full C++11 support already, but Nan probably can be compiled with Clang 3.1 since patches 3.2 and 3.3 are not very used (source)

ranisalt avatar Feb 28 '16 00:02 ranisalt

I'm with @kkoopa on this. We (try to) point the user in a clear direction. Maintaining a list of working compilers is beyond our scope.

agnat avatar Oct 15 '16 04:10 agnat