• Login
Community
  • Login

Can't compile plugin demo in Visual Studio( Learning How To create Npp plugin)

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
plugincreate pluginhow to create
4 Posts 2 Posters 2.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Alejandro Retamal
    last edited by Alejandro Retamal Jul 1, 2018, 5:58 AM Jul 1, 2018, 5:56 AM

    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!!

    1 Reply Last reply Reply Quote 0
    • C
      chcg
      last edited by chcg Jul 2, 2018, 9:18 PM Jul 2, 2018, 9:17 PM

      @Don-HO See https://github.com/npp-plugins/plugindemo/pull/1/files, debug builds shouldn’t activate optimizations

      1 Reply Last reply Reply Quote 1
      • A
        Alejandro Retamal
        last edited by Jul 2, 2018, 10:14 PM

        could you explain me a little bit?
        I’m new on this :)

        1 Reply Last reply Reply Quote 0
        • C
          chcg
          last edited by Jul 12, 2018, 6:08 AM

          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.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors