Hello I tried compile source code by MinGW3.0 but always eroor happened like below.
../src/Notepad_plus.h:214: `vDataVis' undeclared (first use this function)
../src/Notepad_plus.h:224: parse error before `;' token
../src/Notepad_plus.h:226: `vDataAll' undeclared (first use this function)
../src/Notepad_plus.h:236: `DOCKCONT_MAX' undeclared (first use this functio
../src/Notepad_plus.h: At top level:
../src/Parameters.h:184: warning: `int decStrVal(const char*)' defined but n
used
../src/Parameters.h:188: warning: `int hexStrVal(const char*)' defined but n
used
../src/Parameters.h:193: warning: `int getKwClassFromName(const char*)' defi
but not used
../src/ScitillaComponent/Buffer.h:57: warning: `bool isInList(const char*,
const char*)' defined but not used
../src/ScitillaComponent/UserDefineDialog.h:34: warning: `int min(int, int)'
defined but not used
../src/ScitillaComponent/UserDefineDialog.h:38: warning: `int max(int, int)'
defined but not used
../src/Notepad_plus.h:65: warning: `TiXmlNode* searchDlgNode(TiXmlNode*, con
char*)' declared `static' but never defined
../src/Notepad_plus.h:66: warning: `winVer getWindowsVersion()' declared
`static' but never defined
D:\MINGW3\BIN\MINGW3~4.EXE: *** [winmain.o] Error 1
C:\npp\PowerEditor\gcc>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It may not be buildable with MinGW out of the box. I know there were quite a few discussions about this, but I don't believe anyone came up with a satisfactory solution beyond "Use Visual Studio C++". Maybe you can debug the problem and report the solution. --Joel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I didn't get that far. I couldn't find a clean, complete, stand-alone install of MinGW; the recommendation was to use an IDE that included it. I was referring to remarks for attempts to build older versions of Notepad++.
It sounds like you might be able to do it now. That's great.
However, I'll leave compiling with MinGW to those that have MinGW running on their box... --Joel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Bellow is full error message when I tried to compile by MinGW.
既定@OEMCOMPUTER /c/npp/powereditor/gcc
$ make
g++ -Wall -Os -DNDEBUG -c ../src/winmain.cpp -o winmain.o -I../../scintilla/include -I../src/ScitillaComponent -I../src/WinControls -I../src/WinControls/TabBar -I../src/WinControls/ToolBar -I../src/WinControls/StatusBar -I../src/WinControls/ImageListSet -I../src/WinControls/OpenSaveFileDialog -I../src/WinControls/SplitterContainer -I../src/WinControls/StaticDialog -I../src/WinControls/AboutDlg -I../src/MISC/SysMsg -I../src/MISC/Process -I../src/MISC -I../src/WinControls/StaticDialog/RunDlg -I../src -I../src/TinyXml -I../src/WinControls/ColourPicker -I../src/MISC/RegExt -I../src/MISC/PluginsManager -I../src/WinControls/TrayIcon -I../src/WinControls/shortcut -I../src/WinControls/ContextMenu -I../src/WinControls/Grid -I../src/WinControls/Preference -I../src/WinControls/WindowsDlg
In file included from ../src/TinyXml/tinyxml.h:60,
from ../src/Parameters.h:22,
from ../src/ScitillaComponent/Buffer.h:25,
from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/TinyXml/tinystr.h:33: warning: ignoring #pragma warning
In file included from ../src/ScitillaComponent/Buffer.h:25,
from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/Parameters.h: In constructor `NppGUI::NppGUI()':
../src/Parameters.h:522: warning: `NppGUI::_backup' will be initialized after
../src/Parameters.h:512: warning: `bool NppGUI::_doTaskList'
../src/Parameters.h:477: warning: when initialized here
In file included from ../src/Notepad_plus.h:35,
from ../src/winmain.cpp:18:
../src/lastRecentFileList.h: In member function `void LastRecentFileList::initMenu(HMENU__*, int, int)':
../src/lastRecentFileList.h:21: warning: comparison between signed and unsigned integer expressions
In file included from ../src/Notepad_plus.h:41,
from ../src/winmain.cpp:18:
../src/MISC/PluginsManager/PluginsManager.h: In constructor `PluginInfo::PluginInfo()':
../src/MISC/PluginsManager/PluginsManager.h:52: warning: `PluginInfo::_pFuncGetFuncsArray' will be initialized after
../src/MISC/PluginsManager/PluginsManager.h:50: warning: `const char*(*PluginInfo::_pFuncGetName)()'
../src/MISC/PluginsManager/PluginsManager.h:35: warning: when initialized here
In file included from ../src/Notepad_plus.h:43,
from ../src/winmain.cpp:18:
../src/WinControls/Preference/preferenceDlg.h:171:26: warning: no newline at end of file
In file included from ../src/WinControls/WindowsDlg/SizeableDlg.h:5,
from ../src/WinControls/WindowsDlg/WindowsDlg.h:21,
from ../src/Notepad_plus.h:44,
from ../src/winmain.cpp:18:
../src/WinControls/WindowsDlg/WinMgr.h:301:7: warning: no newline at end of file
In file included from ../src/winmain.cpp:18:
../src/Notepad_plus.h:46:28: DockingManager.h: No such file or directory
In file included from ../src/winmain.cpp:18:
../src/Notepad_plus.h: At global scope:
../src/Notepad_plus.h:360: error: `DockingManager' does not name a type
../src/Notepad_plus.h:789: error: expected `;' before '(' token
../src/Notepad_plus.h: In member function `void Notepad_plus::killAllChildren()':
../src/Notepad_plus.h:113: error: `_dockingManager' undeclared (first use this function)
../src/Notepad_plus.h:113: error: (Each undeclared identifier is reported only once for each function it appears in.)
../src/Notepad_plus.h: In member function `void Notepad_plus::saveGUIParams()':
../src/Notepad_plus.h:194: error: `_dockingManager' undeclared (first use this function)
../src/Notepad_plus.h:194: error: `CONT_LEFT' undeclared (first use this function)
../src/Notepad_plus.h:195: error: `CONT_RIGHT' undeclared (first use this function)
../src/Notepad_plus.h:196: error: `CONT_TOP' undeclared (first use this function)
../src/Notepad_plus.h:197: error: `CONT_BOTTOM' undeclared (first use this function)
../src/Notepad_plus.h:207: error: `DockingCont' undeclared (first use this function)
../src/Notepad_plus.h:207: error: template argument 1 is invalid
../src/Notepad_plus.h:207: error: template argument 2 is invalid
../src/Notepad_plus.h:207: error: invalid type in declaration before '=' token
../src/Notepad_plus.h:209: error: `size' has not been declared
../src/Notepad_plus.h:209: error: request for member of non-aggregate type before '(' token
../src/Notepad_plus.h:212: error: `tTbData' undeclared (first use this function)
../src/Notepad_plus.h:212: error: template argument 1 is invalid
../src/Notepad_plus.h:212: error: template argument 2 is invalid
../src/Notepad_plus.h:212: error: invalid type in declaration before '=' token
../src/Notepad_plus.h:212: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:214: error: `size' has not been declared
../src/Notepad_plus.h:214: error: request for member of non-aggregate type before '(' token
../src/Notepad_plus.h:216: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:216: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:218: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:218: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:218: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:224: error: template argument 1 is invalid
../src/Notepad_plus.h:224: error: template argument 2 is invalid
../src/Notepad_plus.h:224: error: invalid type in declaration before '=' token
../src/Notepad_plus.h:224: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:226: error: `size' has not been declared
../src/Notepad_plus.h:226: error: request for member of non-aggregate type before '(' token
../src/Notepad_plus.h:228: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:228: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:228: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:228: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:230: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:230: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:230: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:66: warning: 'winVer getWindowsVersion()' declared `static' but never defined
make: *** [winmain.o] Error 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello I tried compile source code by MinGW3.0 but always eroor happened like below.
../src/Notepad_plus.h:214: `vDataVis' undeclared (first use this function)
../src/Notepad_plus.h:224: parse error before `;' token
../src/Notepad_plus.h:226: `vDataAll' undeclared (first use this function)
../src/Notepad_plus.h:236: `DOCKCONT_MAX' undeclared (first use this functio
../src/Notepad_plus.h: At top level:
../src/Parameters.h:184: warning: `int decStrVal(const char*)' defined but n
used
../src/Parameters.h:188: warning: `int hexStrVal(const char*)' defined but n
used
../src/Parameters.h:193: warning: `int getKwClassFromName(const char*)' defi
but not used
../src/ScitillaComponent/Buffer.h:57: warning: `bool isInList(const char*,
const char*)' defined but not used
../src/ScitillaComponent/UserDefineDialog.h:34: warning: `int min(int, int)'
defined but not used
../src/ScitillaComponent/UserDefineDialog.h:38: warning: `int max(int, int)'
defined but not used
../src/Notepad_plus.h:65: warning: `TiXmlNode* searchDlgNode(TiXmlNode*, con
char*)' declared `static' but never defined
../src/Notepad_plus.h:66: warning: `winVer getWindowsVersion()' declared
`static' but never defined
D:\MINGW3\BIN\MINGW3~4.EXE: *** [winmain.o] Error 1
C:\npp\PowerEditor\gcc>
It may not be buildable with MinGW out of the box. I know there were quite a few discussions about this, but I don't believe anyone came up with a satisfactory solution beyond "Use Visual Studio C++". Maybe you can debug the problem and report the solution. --Joel
Did you try cmake to build Makefile for MinGW?
Don
> Did you try cmake to build Makefile for MinGW?
I didn't get that far. I couldn't find a clean, complete, stand-alone install of MinGW; the recommendation was to use an IDE that included it. I was referring to remarks for attempts to build older versions of Notepad++.
It sounds like you might be able to do it now. That's great.
However, I'll leave compiling with MinGW to those that have MinGW running on their box... --Joel
Thanks Joel, Don
I've tired compile by Visual C++ express edition with SDK to use makefile in /scintillia/win32/. It didn't show error but npp.exe didn't come out.
As MinGW, I used makefile in /PowerEditor/gcc/. But error came out that I posted above.
I tried MinGW Version 3.0 and 5.1.3 both though, same result.
Bellow is full error message when I tried to compile by MinGW.
既定@OEMCOMPUTER /c/npp/powereditor/gcc
$ make
g++ -Wall -Os -DNDEBUG -c ../src/winmain.cpp -o winmain.o -I../../scintilla/include -I../src/ScitillaComponent -I../src/WinControls -I../src/WinControls/TabBar -I../src/WinControls/ToolBar -I../src/WinControls/StatusBar -I../src/WinControls/ImageListSet -I../src/WinControls/OpenSaveFileDialog -I../src/WinControls/SplitterContainer -I../src/WinControls/StaticDialog -I../src/WinControls/AboutDlg -I../src/MISC/SysMsg -I../src/MISC/Process -I../src/MISC -I../src/WinControls/StaticDialog/RunDlg -I../src -I../src/TinyXml -I../src/WinControls/ColourPicker -I../src/MISC/RegExt -I../src/MISC/PluginsManager -I../src/WinControls/TrayIcon -I../src/WinControls/shortcut -I../src/WinControls/ContextMenu -I../src/WinControls/Grid -I../src/WinControls/Preference -I../src/WinControls/WindowsDlg
In file included from ../src/TinyXml/tinyxml.h:60,
from ../src/Parameters.h:22,
from ../src/ScitillaComponent/Buffer.h:25,
from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/TinyXml/tinystr.h:33: warning: ignoring #pragma warning
In file included from ../src/ScitillaComponent/Buffer.h:25,
from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/Parameters.h: In constructor `NppGUI::NppGUI()':
../src/Parameters.h:522: warning: `NppGUI::_backup' will be initialized after
../src/Parameters.h:512: warning: `bool NppGUI::_doTaskList'
../src/Parameters.h:477: warning: when initialized here
In file included from ../src/Notepad_plus.h:35,
from ../src/winmain.cpp:18:
../src/lastRecentFileList.h: In member function `void LastRecentFileList::initMenu(HMENU__*, int, int)':
../src/lastRecentFileList.h:21: warning: comparison between signed and unsigned integer expressions
In file included from ../src/Notepad_plus.h:41,
from ../src/winmain.cpp:18:
../src/MISC/PluginsManager/PluginsManager.h: In constructor `PluginInfo::PluginInfo()':
../src/MISC/PluginsManager/PluginsManager.h:52: warning: `PluginInfo::_pFuncGetFuncsArray' will be initialized after
../src/MISC/PluginsManager/PluginsManager.h:50: warning: `const char*(*PluginInfo::_pFuncGetName)()'
../src/MISC/PluginsManager/PluginsManager.h:35: warning: when initialized here
In file included from ../src/Notepad_plus.h:43,
from ../src/winmain.cpp:18:
../src/WinControls/Preference/preferenceDlg.h:171:26: warning: no newline at end of file
In file included from ../src/WinControls/WindowsDlg/SizeableDlg.h:5,
from ../src/WinControls/WindowsDlg/WindowsDlg.h:21,
from ../src/Notepad_plus.h:44,
from ../src/winmain.cpp:18:
../src/WinControls/WindowsDlg/WinMgr.h:301:7: warning: no newline at end of file
In file included from ../src/winmain.cpp:18:
../src/Notepad_plus.h:46:28: DockingManager.h: No such file or directory
In file included from ../src/winmain.cpp:18:
../src/Notepad_plus.h: At global scope:
../src/Notepad_plus.h:360: error: `DockingManager' does not name a type
../src/Notepad_plus.h:789: error: expected `;' before '(' token
../src/Notepad_plus.h: In member function `void Notepad_plus::killAllChildren()':
../src/Notepad_plus.h:113: error: `_dockingManager' undeclared (first use this function)
../src/Notepad_plus.h:113: error: (Each undeclared identifier is reported only once for each function it appears in.)
../src/Notepad_plus.h: In member function `void Notepad_plus::saveGUIParams()':
../src/Notepad_plus.h:194: error: `_dockingManager' undeclared (first use this function)
../src/Notepad_plus.h:194: error: `CONT_LEFT' undeclared (first use this function)
../src/Notepad_plus.h:195: error: `CONT_RIGHT' undeclared (first use this function)
../src/Notepad_plus.h:196: error: `CONT_TOP' undeclared (first use this function)
../src/Notepad_plus.h:197: error: `CONT_BOTTOM' undeclared (first use this function)
../src/Notepad_plus.h:207: error: `DockingCont' undeclared (first use this function)
../src/Notepad_plus.h:207: error: template argument 1 is invalid
../src/Notepad_plus.h:207: error: template argument 2 is invalid
../src/Notepad_plus.h:207: error: invalid type in declaration before '=' token
../src/Notepad_plus.h:209: error: `size' has not been declared
../src/Notepad_plus.h:209: error: request for member of non-aggregate type before '(' token
../src/Notepad_plus.h:212: error: `tTbData' undeclared (first use this function)
../src/Notepad_plus.h:212: error: template argument 1 is invalid
../src/Notepad_plus.h:212: error: template argument 2 is invalid
../src/Notepad_plus.h:212: error: invalid type in declaration before '=' token
../src/Notepad_plus.h:212: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:214: error: `size' has not been declared
../src/Notepad_plus.h:214: error: request for member of non-aggregate type before '(' token
../src/Notepad_plus.h:216: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:216: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:218: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:218: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:218: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:224: error: template argument 1 is invalid
../src/Notepad_plus.h:224: error: template argument 2 is invalid
../src/Notepad_plus.h:224: error: invalid type in declaration before '=' token
../src/Notepad_plus.h:224: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:226: error: `size' has not been declared
../src/Notepad_plus.h:226: error: request for member of non-aggregate type before '(' token
../src/Notepad_plus.h:228: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:228: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:228: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:228: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:230: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:230: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:230: error: invalid types `int[size_t]' for array subscript
../src/Notepad_plus.h:66: warning: 'winVer getWindowsVersion()' declared `static' but never defined
make: *** [winmain.o] Error 1