Develop a plugin
-
but the extension is .vcxproj can I have a project in extension .sln?
MSVC can create the .sln file. Not sure if there is a way to create it without MSVC.
The output is dynamic library it os roght?
If I understand you correctly then yes.
-
You might want to try using the Microsoft Visual Studio 2013 community edition. It’s free…
https://www.visualstudio.com/en-us/news/releasenotes/vs2013-community-vs
-
I have been using Visual Studio 2015 without issue, which includes some C++ compiler and IDE improvements. https://www.visualstudio.com/downloads/
MinGW should work as well if you really dont want to use the MS tools. You just need a standard DLL with the specified exports, nothing much of interest in the template project files. The template is just a guide/startpoint to copy, and the needed API files (plus
ILexer.hif doing syntax highlighting) are on the main git repo. -
ok thanks, I will try to develop a plugin with gcc, are there particular arguments to pass to compiler?
-
I compile my plugins with Microsoft compiler (e.g. Windows SDK) and cygwin makefiles.
I do have MSDEV for occasional debugging.
Nothing special about NPP plugins, just compile a DLL and provide the required include paths and libraries. -
Kasper has done some great work on making plugins with Visual Studio and C#. See https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net/releases
This should work with the Community editions of Visual Studio which is free. -
Hello, I have a problem with line 53 of file GoToLineDlg.cpp error is this:
GoToLineDlg.cpp.o:GoToLineDlg.cpp:(.text$ZN19DockingDlgInterface4initEP11HINSTANCE__P6HWND_[ZN19DockingDlgInterface4initEP11HINSTANCE__P6HWND_]+0x57): undefined reference to `__imp_PathFindFileNameA’
collect2.exe: error: ld returned 1 exit status
Makefile:2: recipe for target ‘NppPluginDemo’ failed
mingw32-make: *** [NppPluginDemo] Error 1Is there an alternative code to line 53?
-
How have you been trying to compile it?
What have you tried so far to fix it?
Have you tried Google?
-
I have found a way to compile the plugin template with g++, please test if work:
-
Edit: new version without string errors, I have only tested unicode 32 bit, please test ansi 32 and 64 bit, and unicode 64 bit.
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