Accéder au contenu.
Menu Sympa

starpu-devel - [Starpu-devel] Header Issue (C++ and MSVC)

Objet : Developers list for StarPU

Archives de la liste

[Starpu-devel] Header Issue (C++ and MSVC)


Chronologique Discussions 
  • From: George Russell <george@codeplay.com>
  • To: "starpu-devel@lists.gforge.inria.fr" <starpu-devel@lists.gforge.inria.fr>
  • Subject: [Starpu-devel] Header Issue (C++ and MSVC)
  • Date: Wed, 20 Apr 2011 15:19:46 +0200
  • List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel>
  • List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>

Hi,

In starpu_opencl.h, the __func__ construct is used in the STARPU_OPENCL_DISPLAY_ERROR macro.
This is C99, not C89/C++, and breaks MSVC (and presumably, other compilers not supporting C99 in C/C++)

A fix for MSVC is to define __func__ in the header

#ifdef _MSC_VER
#define __func__ __FUNCTION__
#endif

Cheers,
George



Archives gérées par MHonArc 2.6.19+.

Haut de le page