Community
    • 登入

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

    已排程 已置頂 已鎖定 已移動 Notepad++ & Plugin Development
    plugincreate pluginhow to create
    4 貼文 2 Posters 2.2k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Alejandro RetamalA
      Alejandro Retamal
      最後由 Alejandro Retamal 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • chcgC
        chcg
        最後由 chcg 編輯

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

        1 條回覆 最後回覆 回覆 引用 1
        • Alejandro RetamalA
          Alejandro Retamal
          最後由 編輯

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

          1 條回覆 最後回覆 回覆 引用 0
          • chcgC
            chcg
            最後由 編輯

            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 條回覆 最後回覆 回覆 引用 1
            • 第一個貼文
              最後的貼文
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors