compilin error on VC++ express 2008

Hi everybody,

I'm getting the follwoing error messages when I try to compile a simple application for test the funcionalities of OCC.

I've built a windows forms application in VC++ express 2008.
Then I've created a form to be my viewer.

see the errors:

E6.3.0\ros\inc\Standard_Boolean.hxx(23) : warning C4272: 'Standard_Boolean_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Boolean.hxx(39) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Boolean.hxx(40) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(14) : warning C4272: 'Standard_Integer_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(27) : warning C4272: 'NextPrimeForMap' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(28) : warning C4272: 'NextPrime' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(29) : warning C4272: 'CharToInt' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(30) : warning C4272: 'CharToInt' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(30) : warning C4272: 'CharToInt' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(31) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(31) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_CString.hxx(30) : warning C4272: 'Standard_CString_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_CString.hxx(39) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_CString.hxx(39) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_CString.hxx(55) : warning C4272: 'ISSIMILAR' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_CString.hxx(64) : warning C4272: 'HASHCODES' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(20) : warning C4272: 'Standard_Real_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(28) : warning C4394: 'PI' : per-appdomain symbol should not be marked with __declspec(dllimport)
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(29) : warning C4394: 'PI180' : per-appdomain symbol should not be marked with __declspec(dllimport)
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(30) : warning C4394: 'Standard_PI' : per-appdomain symbol should not be marked with __declspec(dllimport)
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(31) : warning C4394: 'Standard_PI180' : per-appdomain symbol should not be marked with __declspec(dllimport)
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(53) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(53) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(54) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(54) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(56) : warning C4272: 'ACos' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(57) : warning C4272: 'ASin' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(58) : warning C4272: 'ATan2' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(59) : warning C4272: 'NextAfter' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(60) : warning C4272: 'Sign' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(61) : warning C4272: 'ATanh' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(62) : warning C4272: 'ACosh' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(63) : warning C4272: 'Log' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(64) : warning C4272: 'Sqrt' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Character.hxx(25) : warning C4272: 'Standard_Character_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Character.hxx(32) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Character.hxx(32) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(13) : warning C4272: 'Standard_OStream_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(17) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(18) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(18) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(19) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(19) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(20) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(20) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(21) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(21) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(22) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(22) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(23) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(23) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(24) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(24) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(26) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(26) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(28) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(28) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtCharacter.hxx(29) : warning C4272: 'Standard_ExtCharacter_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtCharacter.hxx(35) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtCharacter.hxx(35) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtString.hxx(18) : warning C4272: 'Standard_ExtString_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtString.hxx(32) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtString.hxx(32) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Address.hxx(27) : warning C4272: 'Standard_Address_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(77) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(77) : error C3395: 'Standard::Allocate' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(81) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(81) : error C3395: 'Standard::Free' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(86) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(86) : error C3395: 'Standard::Reallocate' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(91) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(91) : error C3395: 'Standard::Purge' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(97) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(97) : error C3395: 'Standard::IsReentrant' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(104) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(104) : error C3395: 'Standard::SetReentrant' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(46) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(46) : error C3395: 'Standard_Storable_Type_' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(77) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(77) : error C3395: 'Standard_Storable::Delete' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(78) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(78) : error C3395: 'Standard_Storable::~Standard_Storable' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(82) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(82) : error C3395: 'Standard_Storable::HashCode' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(86) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(86) : error C3395: 'Standard_Storable::IsEqual' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(95) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(95) : error C3395: 'Standard_Storable::IsSimilar' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(101) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(101) : error C3395: 'Standard_Storable::ShallowDump' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(108) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(108) : error C3395: 'Standard_Storable_Type_' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_PrimitiveTypes.hxx(45) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_PrimitiveTypes.hxx(45) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_PrimitiveTypes.hxx(49) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_PrimitiveTypes.hxx(49) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(20) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(20) : error C3395: 'StandardCSFDB_Allocate' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(21) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(21) : error C3395: 'StandardCSFDB_Free' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(22) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(22) : error C3395: 'Standard_Persistent_Type_' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(48) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(48) : error C3395: 'Standard_Persistent::This' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(49) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(49) : error C3395: 'Standard_Persistent::ShallowCopy' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(50) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(50) : error C3395: 'Standard_Persistent::Delete' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(51) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(51) : error C3395: 'Standard_Persistent::~Standard_Persistent' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(53) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(53) : error C3395: 'Standard_Persistent::operator =' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(58) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(58) : error C3395: 'Standard_Persistent::DynamicType' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(59) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(59) : error C3395: 'Standard_Persistent::IsKind' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(60) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(60) : error C3395: 'Standard_Persistent::IsInstance' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(61) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(61) : error C3395: 'Standard_Persistent::HashCode' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(62) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(62) : error C3395: 'Standard_Persistent::ShallowDump' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(39) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(40) : error C3395: 'HashCode' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(40) : error C3395: 'HashCode' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(41) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(41) : error C3395: 'StandardCSFDB_Allocate' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(42) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(42) : error C3395: 'StandardCSFDB_Free' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(50) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(50) : error C3395: 'Handle_Standard_Persistent::RaiseNullObject' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(106) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(106) : error C3395: 'Handle_Standard_Persistent::Dump' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(108) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(108) : error C3395: 'Handle_Standard_Persistent::~Handle_Standard_Persistent' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(110) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(110) : error C3395: 'Handle_Standard_Persistent::ShallowDump' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(185) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(185) : error C3395: 'Handle_Standard_Persistent::operator =' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(186) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(186) : error C3395: 'Handle_Standard_Persistent::operator =' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(208) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(208) : error C3395: 'Handle_Standard_Persistent::DownCast' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(99) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(99) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(102) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(102) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(105) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(105) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(108) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(108) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(111) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(111) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(115) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(115) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(118) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(118) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(121) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(121) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(124) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(124) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(127) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(127) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(132) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(132) : error C3395: 'TCollection_ExtendedString::AssignCat' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(140) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(140) : error C3395: 'TCollection_ExtendedString::Cat' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(152) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(152) : error C3395: 'TCollection_ExtendedString::ChangeAll' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(152) : fatal error C1003: error count exceeds 100; stopping compilation
1>pr.cpp
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Boolean.hxx(23) : warning C4272: 'Standard_Boolean_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Boolean.hxx(39) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Boolean.hxx(40) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(14) : warning C4272: 'Standard_Integer_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(27) : warning C4272: 'NextPrimeForMap' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(28) : warning C4272: 'NextPrime' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(29) : warning C4272: 'CharToInt' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(30) : warning C4272: 'CharToInt' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(30) : warning C4272: 'CharToInt' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(31) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Integer.hxx(31) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_CString.hxx(30) : warning C4272: 'Standard_CString_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_CString.hxx(39) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_CString.hxx(39) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_CString.hxx(55) : warning C4272: 'ISSIMILAR' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_CString.hxx(64) : warning C4272: 'HASHCODES' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(20) : warning C4272: 'Standard_Real_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(28) : warning C4394: 'PI' : per-appdomain symbol should not be marked with __declspec(dllimport)
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(29) : warning C4394: 'PI180' : per-appdomain symbol should not be marked with __declspec(dllimport)
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(30) : warning C4394: 'Standard_PI' : per-appdomain symbol should not be marked with __declspec(dllimport)
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(31) : warning C4394: 'Standard_PI180' : per-appdomain symbol should not be marked with __declspec(dllimport)
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(53) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(53) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(54) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(54) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(56) : warning C4272: 'ACos' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(57) : warning C4272: 'ASin' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(58) : warning C4272: 'ATan2' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(59) : warning C4272: 'NextAfter' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(60) : warning C4272: 'Sign' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(61) : warning C4272: 'ATanh' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(62) : warning C4272: 'ACosh' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(63) : warning C4272: 'Log' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Real.hxx(64) : warning C4272: 'Sqrt' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Character.hxx(25) : warning C4272: 'Standard_Character_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Character.hxx(32) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Character.hxx(32) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(13) : warning C4272: 'Standard_OStream_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(17) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(18) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(18) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(19) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(19) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(20) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(20) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(21) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(21) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(22) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(22) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(23) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(23) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(24) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(24) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(26) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(26) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(28) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_OStream.hxx(28) : warning C4272: 'ShallowDump' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtCharacter.hxx(29) : warning C4272: 'Standard_ExtCharacter_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtCharacter.hxx(35) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtCharacter.hxx(35) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtString.hxx(18) : warning C4272: 'Standard_ExtString_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtString.hxx(32) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_ExtString.hxx(32) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Address.hxx(27) : warning C4272: 'Standard_Address_Type_' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(77) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(77) : error C3395: 'Standard::Allocate' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(81) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(81) : error C3395: 'Standard::Free' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(86) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(86) : error C3395: 'Standard::Reallocate' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(91) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(91) : error C3395: 'Standard::Purge' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(97) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(97) : error C3395: 'Standard::IsReentrant' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(104) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard.hxx(104) : error C3395: 'Standard::SetReentrant' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(46) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(46) : error C3395: 'Standard_Storable_Type_' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(77) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(77) : error C3395: 'Standard_Storable::Delete' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(78) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(78) : error C3395: 'Standard_Storable::~Standard_Storable' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(82) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(82) : error C3395: 'Standard_Storable::HashCode' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(86) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(86) : error C3395: 'Standard_Storable::IsEqual' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(95) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(95) : error C3395: 'Standard_Storable::IsSimilar' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(101) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(101) : error C3395: 'Standard_Storable::ShallowDump' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(108) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Storable.hxx(108) : error C3395: 'Standard_Storable_Type_' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_PrimitiveTypes.hxx(45) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_PrimitiveTypes.hxx(45) : warning C4272: 'ShallowCopy' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_PrimitiveTypes.hxx(49) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_PrimitiveTypes.hxx(49) : warning C4272: 'HashCode' : is marked __declspec(dllimport); must specify native calling convention when importing a function.
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(20) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(20) : error C3395: 'StandardCSFDB_Allocate' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(21) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(21) : error C3395: 'StandardCSFDB_Free' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(22) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(22) : error C3395: 'Standard_Persistent_Type_' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(48) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(48) : error C3395: 'Standard_Persistent::This' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(49) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(49) : error C3395: 'Standard_Persistent::ShallowCopy' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(50) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(50) : error C3395: 'Standard_Persistent::Delete' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(51) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(51) : error C3395: 'Standard_Persistent::~Standard_Persistent' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(53) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(53) : error C3395: 'Standard_Persistent::operator =' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(58) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(58) : error C3395: 'Standard_Persistent::DynamicType' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(59) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(59) : error C3395: 'Standard_Persistent::IsKind' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(60) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(60) : error C3395: 'Standard_Persistent::IsInstance' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(61) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(61) : error C3395: 'Standard_Persistent::HashCode' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(62) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Standard_Persistent.hxx(62) : error C3395: 'Standard_Persistent::ShallowDump' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(39) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(40) : error C3395: 'HashCode' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(40) : error C3395: 'HashCode' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(41) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(41) : error C3395: 'StandardCSFDB_Allocate' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(42) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(42) : error C3395: 'StandardCSFDB_Free' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(50) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(50) : error C3395: 'Handle_Standard_Persistent::RaiseNullObject' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(106) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(106) : error C3395: 'Handle_Standard_Persistent::Dump' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(108) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(108) : error C3395: 'Handle_Standard_Persistent::~Handle_Standard_Persistent' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(110) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(110) : error C3395: 'Handle_Standard_Persistent::ShallowDump' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(185) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(185) : error C3395: 'Handle_Standard_Persistent::operator =' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(186) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(186) : error C3395: 'Handle_Standard_Persistent::operator =' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(208) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\Handle_Standard_Persistent.hxx(208) : error C3395: 'Handle_Standard_Persistent::DownCast' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(99) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(99) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(102) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(102) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(105) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(105) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(108) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(108) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(111) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(111) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(115) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(115) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(118) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(118) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(121) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(121) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(124) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(124) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(127) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(127) : error C3395: 'TCollection_ExtendedString::TCollection_ExtendedString' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(132) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(132) : error C3395: 'TCollection_ExtendedString::AssignCat' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(140) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(140) : error C3395: 'TCollection_ExtendedString::Cat' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(152) : error C3389: __declspec(dllexport) cannot be used with /clr:pure or /clr:safe
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(152) : error C3395: 'TCollection_ExtendedString::ChangeAll' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
1>C:\OpenCASCADE6.3.0\ros\inc\TCollection_ExtendedString.hxx(152) : fatal error C1003: error count exceeds 100; stopping compilation
1>Generating Code...
1>Build log was saved at "file://c:\Documents and Settings\marcelo.fontes\Meus documentos\Visual Studio 2008\Projects\pr\pr\Debug\BuildLog.htm"
1>pr - 204 error(s), 136 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Can anybody explain what is happening?

Marcelo.

Paul Jimenez's picture

"__declspec(dllexport) cannot be used with /clr:pure or /clr:safe"

I found this link in MSDN by putting the previous error message in Google: http://msdn.microsoft.com/en-us/library/85344whh(VS.80).aspx

It seems to be related to .NET, still you may find something useful there. In any case, Google should help you find answers more quickly for this one.