[ android~paranoid @ 18.09.2007. 15:01 ] @
Imam problem sa otvaranjem projekta u VS2005 za C++, pa bih rucno da iskompajliram program.
Ovo je primer iz koda iz knjige (zajedno sa nacinom kompaliranja):

Code:
#using <mscorlib.dll>
using namespace System;
public __gc __interface ISteering
{
void TurnLeft( );
void TurnRight( );
};
public __gc class Vehicle : public ISteering
{
public:
virtual void TurnLeft( )
{
Console::WriteLine("Vehicle turns left.");
}
virtual void TurnRight( )
{
Console::WriteLine("Vehicle turn right.");
}
virtual void ApplyBrakes( ) = 0;
};


cl /CLR /c vehicle.cpp
link -dll /out:vehicle.dll -noentry vehicle.obj

Dobijem:

Citat:
Error 1 error C4980: '__gc' : use of this keyword requires /clr:oldSyntax command line option

[ yaelo @ 18.09.2007. 17:56 ] @
MSVC++ 2005 koristi novu sintaksu. Za koriscenje stare pod Configuration Properties->General->Common Language runtime support stavi /clr:oldSyntax.