Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio .NET
Visual C++
C/C++ Build Errors
 Compiler Error C3861

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
Visual C++ Concepts: Building a C/C++ Program
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
}
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker