C++ syntax error : missing ';' before '<'

依然范特西╮ 提交于 2019-12-25 05:27:26

问题


Ehh, I'm having an issue which i don't understand...

class ManagedGlobals
{
public: gcroot<Editor^> MainEditor;
};

Why does my compiler give me:

syntax error : missing ';' before '<'

Why?


回答1:


Did you do this?

#include <vcclr.h>
using namespace System;

Here's a full example of using gcroot.



来源:https://stackoverflow.com/questions/11567792/c-syntax-error-missing-before

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!