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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login