I saw that

enabling intrisincs works fine here with VisualStudio 2005

Well it goes mental here, also on VS2005…

in your code it should be n instead of n2.

Do you have VS2005 SP1 installed ?

not sure if I’ve got SP1 - I’ll double-check

Ok, well I installed SP1 and it still bombs out. Are you sure it doesn’t fail for you? It only crashes when you actually get to the link stage, and presumably only if you’ve actually used this function somewhere.

compiles, link and rune fine here.
you have seen that its written n2 instead of n in your code right ?

yes, I fixed the n2 thing, but it makes no difference. Can’t think why it would be different on different machines…