Problems compiling SampleUserInterface c++ plugin separately

Hi All,

I am trying to test out C++ SampleUI example. It compiled successfully. Then I created a separate project and made some changes to it now while compiling I get the following error :
--- Rhino C++ component links with libs in "C:/Program Files/Rhino 6 SDK/Lib/Release"
1>cmdTestUI.cpp
1>TestDialogScrollHelper.cpp
1>TestRhinoDockbar.cpp
1>c:\program files\rhino 6 sdk\inc\rhinosdkuidockbar.h(463): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\rhino 6 sdk\inc\rhinosdkuidockbar.h(463): error C2143: syntax error: missing ',' before '&'
1>c:\program files\rhino 6 sdk\inc\rhinosdkuidockbar.h(521): error C3646: 'm_close_button': unknown override specifier
1>c:\program files\rhino 6 sdk\inc\rhinosdkuidockbar.h(521): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\rhino 6 sdk\inc\rhinosdkuidockbar.h(522): error C3646: 'm_gear_button': unknown override specifier
1>c:\program files\rhino 6 sdk\inc\rhinosdkuidockbar.h(522): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>TestRhinoDockbarDialog.cpp
1>TestUIApp.cpp
1>TestUIPlugIn.cpp
1>Generating Code...
1>Done building project "TestUI.vcxproj" -- FAILED.

I don’t think it is a problem of sdk. Please find attached the source code. Any help would be much appreciated.

You may need to set the C++ support to C++11 or higher. See under project > Properties > C/C++ > Language > C++ Language Standard

Thanks a lot Menno the change you suggested worked, I had also forgotten to uncomment
#define RHINO_SDK_MFC

1 Like