[Mono-dev] Undeclared identifier in threads.c/VS2005

Brian Crowell mono-devel at fluggo.com
Wed Mar 1 10:58:17 EST 2006

Janne Rantala wrote:
> I'm currently trying to build Mono in Visual Studio 2005, but it seems 
> that there is undeclared identifier __func__ in threads.c which causes 
> build to fail. Revision of threads.c is 57160. Looks like latest changes 
> to that file have been made six days ago, am I the only one having these 
> problems?

"__func__" is the GCC macro for the name of the current function. The Visual C++ 
compiler uses the macro "__FUNCTION__" to do the same thing. So you might 
consider adding the following #define:

#define __func__ __FUNCTION__


More information about the Mono-devel-list mailing list