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.5k Views 1 Watching
    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.
    • Alejandro RetamalA Offline
      Alejandro Retamal
      last edited by 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 Reply Last reply Reply Quote 0
      • chcgC Offline
        chcg
        last edited by chcg

        @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
        • Alejandro RetamalA Offline
          Alejandro Retamal
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • chcgC Offline
            chcg
            last edited by

            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

            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
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors