vc90

C linkage function cannot return C++ class - error resulting from the contents of my method

你说的曾经没有我的故事 提交于 2021-02-19 02:23:42
问题 I am exporting a method that can be called from unmanaged code, but the function itself lives in a managed c++ project. The following code results in a compiler error: error C2526: 'System::Collections::Generic::IEnumerator<T>::Current::get' : C linkage function cannot return C++ class 'System::Collections::Generic::KeyValuePair<TKey,TValue>' error C2526: 'System::Collections::Generic::Dictionary<TKey,TValue>::KeyCollection::GetEnumerator' : C linkage function cannot return C++ class 'System:

C linkage function cannot return C++ class - error resulting from the contents of my method

≡放荡痞女 提交于 2021-02-19 02:23:21
问题 I am exporting a method that can be called from unmanaged code, but the function itself lives in a managed c++ project. The following code results in a compiler error: error C2526: 'System::Collections::Generic::IEnumerator<T>::Current::get' : C linkage function cannot return C++ class 'System::Collections::Generic::KeyValuePair<TKey,TValue>' error C2526: 'System::Collections::Generic::Dictionary<TKey,TValue>::KeyCollection::GetEnumerator' : C linkage function cannot return C++ class 'System:

jsoncpp on vc90?

房东的猫 提交于 2020-01-04 02:39:12
问题 anyone have jsoncpp working on vc90? they use a build system, Scons, which I have never heard of. I installed the latest Scons, found an undocumented scons.bat, launched a vc90 prompt in my jsoncpp dir, modified the SConstruct file to support a msvc90 target (i copied the boilerplate from the msvc80 platform which was already supported) ran scons.bat platform=msvc90 and got errors: scons: done reading SConscript files. scons: Building targets ... cl /Fobuildscons\msvc90\src\jsontestrunner