This documentation is archived and is not being maintained.

Compiler Error C3861

'identifier': identifier not found, even with argument-dependent lookup

The compiler was not able to resolve a reference to an identifier, even using argument-dependent lookup.

The following sample generates C3861:

// C3861.cpp
#include <stdio.h>
namespace NS
   struct X {};
   void f(void*, int)
      printf("in NS::f()\n");

int main()
   NS::X x;
   f( &x, 0);   // found using argument-dependent lookup
   f( &x, undeclared1, g( undeclared2 ) );   // C3861 on g