i was trying to start a new plugin development but seems that i'm doing something wrong.
In the make file i modify :
I modify this line "OBJS = NppInsertPlugin.o StaticDialog.o GoToLineDlg.o" and the targets of course. (i'm not sure if i should do it).
I modify the compiler (CC to CPP), because it was not not working, something like
"
StaticDialog.o:StaticDialog.cpp:(.text+0x2da): undefined reference to `__cxa_all
ocate_exception'
"
This is the makefile :
---------------------------------------------------------------------------------
.SUFFIXES: .cpp
CPP = g++
CC = gcc
And when i execute make seems everything right...
---------------------------------------------------------------------------------
C:\workspace\project\src>mingw32-make
g++ -c -DBUILD_DLL NppInsertPlugin.cpp -o NppInsertPlugin.o
g++ -c -DBUILD_DLL StaticDialog.cpp -o StaticDialog.o
g++ -c -DBUILD_DLL GoToLineDlg.cpp -o GoToLineDlg.o
g++ -shared -o NppInsertPlugin.dll -export-dynamic,-Wl, NppInsertPlugin.o Static
Dialog.o GoToLineDlg.o -lshlwapi
---------------------------------------------------------------------------------
But when i put the dll in notepad plugins folder it says:
---------------------------------------------------------------------------------
Load library is failed
This plugin is not compatible with current version of Notepad++.
Remove this plugin from plugins directory if you don't want to see this message on the next launch time.
---------------------------------------------------------------------------------
I decide update the files Scintilla.h,PluginInterface.h,Notepad_plus_msgs.h because i read something about... but the problem is not changing.
Information about minGW.
---------------------------------------------------------------------------------
C:\workspace\project\src>minGW32-make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-pc-mingw32
---------------------------------------------------------------------------------
Can someone help me?
Thanks for advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
i was trying to start a new plugin development but seems that i'm doing something wrong.
In the make file i modify :
I modify this line "OBJS = NppInsertPlugin.o StaticDialog.o GoToLineDlg.o" and the targets of course. (i'm not sure if i should do it).
I modify the compiler (CC to CPP), because it was not not working, something like
"
StaticDialog.o:StaticDialog.cpp:(.text+0x2da): undefined reference to `__cxa_all
ocate_exception'
"
This is the makefile :
---------------------------------------------------------------------------------
.SUFFIXES: .cpp
CPP = g++
CC = gcc
#UserDefineDialog_res.o
OBJS = NppInsertPlugin.o StaticDialog.o GoToLineDlg.o
#
# the paths
TARGETDIR = ./
DLL = $(TARGETDIR)/NppInsertPlugin.dll
CFLAGS = -DBUILD_DLL
LDFLAGS = -export-dynamic,-Wl,
#LDFLAGS = -Wl,--out-implib,libtstdll.a
#LDFLAGS = -mwindows -lcomctl32 -lshlwapi -llibshell32
ALL: $(DLL)
$(DLL): $(OBJS)
$(CPP) -shared -o $@ $(LDFLAGS) NppInsertPlugin.o StaticDialog.o GoToLineDlg.o -lshlwapi
NppInsertPlugin.o : PluginInterface.h Scintilla.h NppInsertPlugin.cpp
$(CPP) -c $(CFLAGS) NppInsertPlugin.cpp -o $@
StaticDialog.o : PluginInterface.h Scintilla.h StaticDialog.cpp
$(CPP) -c $(CFLAGS) StaticDialog.cpp -o $@
GoToLineDlg.o : PluginInterface.h Scintilla.h GoToLineDlg.cpp
$(CPP) -c $(CFLAGS) GoToLineDlg.cpp -o $@
---------------------------------------------------------------------------------
And when i execute make seems everything right...
---------------------------------------------------------------------------------
C:\workspace\project\src>mingw32-make
g++ -c -DBUILD_DLL NppInsertPlugin.cpp -o NppInsertPlugin.o
g++ -c -DBUILD_DLL StaticDialog.cpp -o StaticDialog.o
g++ -c -DBUILD_DLL GoToLineDlg.cpp -o GoToLineDlg.o
g++ -shared -o NppInsertPlugin.dll -export-dynamic,-Wl, NppInsertPlugin.o Static
Dialog.o GoToLineDlg.o -lshlwapi
---------------------------------------------------------------------------------
But when i put the dll in notepad plugins folder it says:
---------------------------------------------------------------------------------
Load library is failed
This plugin is not compatible with current version of Notepad++.
Remove this plugin from plugins directory if you don't want to see this message on the next launch time.
---------------------------------------------------------------------------------
I decide update the files Scintilla.h,PluginInterface.h,Notepad_plus_msgs.h because i read something about... but the problem is not changing.
Information about minGW.
---------------------------------------------------------------------------------
C:\workspace\project\src>minGW32-make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-pc-mingw32
---------------------------------------------------------------------------------
Can someone help me?
Thanks for advance.
anybody knows something about?
thanks