c++ - error : identifier "__func__" is undefined with ICC -
i'm trying compile project intel's c++ compiler i'm getting many errors these:
1>..\src\luascript.cpp(5889): error : identifier "__func__" undefined 1> reporterrorfunc(geterrordesc(lua_error_item_not_found)); 1> ^ i've compiled project ms visual studio before , got no warnings or errors icc this. here section of code produces error
int32_t luascriptinterface::luanetworkmessageadditem(lua_state* l) { // networkmessage:additem(item) item* item = getuserdata<item>(l, 2); if (!item) { reporterrorfunc(geterrordesc(lua_error_item_not_found)); //this line error points lua_pushnil(l); return 1; } //... } the definition reporterrorfunc is:
#define reporterrorfunc(a) reporterror(__function__, a, true) there also:
#ifndef __function__ #define __function__ __func__ #endif please let me know if need me post anymore code
i'm on windows 7 sp1 x64 msvc 2013 ultimate , intel c++ studio xe 2013 sp1 u2
depending on version of intel xe __func__ predeclared identifier may or may not available. make sure use /qstd=c++11 enable availability.
more information availble at:
https://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler
Comments
Post a Comment