我在 nana 库中有一个错误,我正在使用 Visual Studio 2019。错误是这样的:
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in main.obj Nana test D:\Documents\Repositories\Nana test\Nana test\nana_v142_Release_x64.lib(button.obj)
代码:
#include <nana/gui.hpp>
#include <nana/gui/widgets/button.hpp>
int main()
{
using namespace nana;
form fm;
fm.caption(L"Hello, World!");
button btn(fm, rectangle{20, 20, 150, 30});
btn.caption(L"Quit");
btn.events().click(API::exit);
fm.show();
exec();
}