[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: VS2008 and __gc
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Fri, 9 May 2008 10:34:15 -0700
I definitely do not want to create a managed C++ project. Is there a
setting to turn this off or do I have to completely rebuild the
project?
wes
On Fri, May 9, 2008 at 10:26 AM, Erik Cassel <erik_cassel@pacbell.net> wrote:
>
> It sounds like you created a managed C++ project. If that was not your
> intention, create a Win32 C++ project (or ATL or whatever) instead. A
> managed C++ project will require .NET to be present on the target machine.
>
> If you want to use managed C++ classes for some of your work, then you can
> selectively turn off managed C++ for specific c/cpp files. Look in the C/C++
> property pages of the Lua c-file.
>
> -Erik
>
>
>
>> -----Original Message-----
>> From: lua-bounces@bazar2.conectiva.com.br [mailto:lua-
>> bounces@bazar2.conectiva.com.br] On Behalf Of Wesley Smith
>> Sent: Friday, May 09, 2008 10:07 AM
>> To: Lua list
>> Subject: VS2008 and __gc
>>
>> 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
>
>