Can't compile plugin demo in Visual Studio( Learning How To create Npp plugin)
-
Followin the page “plugin HowTo” https://notepad-plus-plus.org/contribute/plugin-howto.html
I download the pluginDemo.v3.1.bin.zip https://github.com/npp-plugins/plugindemo/releases
Then I unzip, copy “pluginDemo.v3.1.bin\bin\NppPluginDemo.dll” into “C :\ Program Files (x86)\Notepad++\plugins”
I open notepad++ and work fine!
…
The problem is when I download the “Source code (zip)” and open “NppPluginDemo.vcxproj”
because I go to “Compile solution”. Then I get this error:
“MSB8020| The build tools for v120_xp (Platform Toolset = ‘v120_xp’) cannot be found. To build using the v120_xp build tools, please install v120_xp build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting “Retarget solution”.”
This is what I do:
In “explorer solutions” box, hay choose “NppPluginDemo (Visual Studio 2013 - Windows XP)”
In Tab “Project”-> “properties”->“General” I can see “Visual Studio 2013… (not insalled)” and I choose “Visual Studio 2017(v141)”. Then I go to “Compile Solution” and I get this error:
“D8016| ‘/Ox’ and ‘/RTC1’ command-line options are incompatible”.
Please help me!! -
@Don-HO See https://github.com/npp-plugins/plugindemo/pull/1/files, debug builds shouldn’t activate optimizations
-
could you explain me a little bit?
I’m new on this :) -
Compiler optimization option /Ox (https://msdn.microsoft.com/en-us/library/59a3b321.aspx) can’t be combined with runtime checks option /RTC1 https://msdn.microsoft.com/en-us/library/8wtf2dfz.aspx. For debug builds typically the optimization is disabled.