[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: VS2008 and __gc
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Fri, 9 May 2008 10:06:39 -0700
Hi list,
I was porting some code to Windows and was surprised that a method:
static in __gc(lua_State *L)
was using the "__gc" keyword. Apparently managed C++ on windows
defines __gc for itself and gives errors in my code when I use it to
define a function. The errors said to use /clr:oldsyntax as a
compiler switch, which is even worse since that is apparently
deprecated and will not even compile. Anyone know how to turn off
managed C++ to avoid this problem?
thanks,
wes