I use MinGW 3.0.0.1 and MSYS 1.0.9.
When I try to make the source, I get this error:
In file included from ../src/Notepad_plus.h:36,
from ../src/winmain.cpp:18:
../src/ScitillaComponent/GoToLineDlg.h: In member function `void
GoToLineDlg::updateLinesNumbers() const':
../src/ScitillaComponent/GoToLineDlg.h:89: parse error before `;' token
../src/ScitillaComponent/GoToLineDlg.h:90: parse error before `;' token
All of the output:
<<<-------------------end---------------------
$ 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
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 member function `bool
NppParameters::isTransparentAvailable() const':
../src/Parameters.h:708: invalid reinterpret_cast from type `LRESULT
(*)(HWND__*, unsigned int, unsigned int, long int)' to type `bool'
In file included from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/ScitillaComponent/Buffer.h: In member function `void
Buffer::setFileName(const char*)':
../src/ScitillaComponent/Buffer.h:176: cannot convert `char*' to `const WCHAR*'
for argument `1' to `TCHAR* PathFindExtensionA(const WCHAR*)'
In file included from ../src/Notepad_plus.h:36,
from ../src/winmain.cpp:18:
../src/ScitillaComponent/GoToLineDlg.h: In member function `void
GoToLineDlg::updateLinesNumbers() const':
../src/ScitillaComponent/GoToLineDlg.h:89: parse error before `;' token
../src/ScitillaComponent/GoToLineDlg.h:90: parse error before `;' token
In file included from ../src/winmain.cpp:18:
../src/Notepad_plus.h: In member function `void
Notepad_plus::updateStatusBar()':
../src/Notepad_plus.h:698: warning: int format, long int arg (arg 3)
../src/Notepad_plus.h:698: warning: int format, long int arg (arg 4)
../src/Notepad_plus.h:698: warning: int format, long int arg (arg 5)
../src/Notepad_plus.h: At top level:
../src/Parameters.h:72: warning: `int decStrVal(const char*)' defined but not
used
../src/Parameters.h:76: warning: `int hexStrVal(const char*)' defined but not
used
../src/Parameters.h:81: warning: `int getKwClassFromName(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
make: *** [winmain.o] Error 1
<<<-------------------end---------------------
What can I do?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
make successfully, and need do these things:
GoToLineDlg.h 89 & 90:
::SetDlgItemInt(_hSelf, ID_CURRLINE, static_cast<unsigned int>((*_ppEditView)->getCurrentLineNumber() + 1), FALSE);
::SetDlgItemInt(_hSelf, ID_LASTLINE, static_cast<unsigned int>((*_ppEditView)->execute(SCI_GETLINECOUNT)), FALSE);
I use MinGW 3.0.0.1 and MSYS 1.0.9.
When I try to make the source, I get this error:
In file included from ../src/Notepad_plus.h:36,
from ../src/winmain.cpp:18:
../src/ScitillaComponent/GoToLineDlg.h: In member function `void
GoToLineDlg::updateLinesNumbers() const':
../src/ScitillaComponent/GoToLineDlg.h:89: parse error before `;' token
../src/ScitillaComponent/GoToLineDlg.h:90: parse error before `;' token
All of the output:
<<<-------------------end---------------------
$ 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
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 member function `bool
NppParameters::isTransparentAvailable() const':
../src/Parameters.h:708: invalid reinterpret_cast from type `LRESULT
(*)(HWND__*, unsigned int, unsigned int, long int)' to type `bool'
In file included from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/ScitillaComponent/Buffer.h: In member function `void
Buffer::setFileName(const char*)':
../src/ScitillaComponent/Buffer.h:176: cannot convert `char*' to `const WCHAR*'
for argument `1' to `TCHAR* PathFindExtensionA(const WCHAR*)'
In file included from ../src/Notepad_plus.h:36,
from ../src/winmain.cpp:18:
../src/ScitillaComponent/GoToLineDlg.h: In member function `void
GoToLineDlg::updateLinesNumbers() const':
../src/ScitillaComponent/GoToLineDlg.h:89: parse error before `;' token
../src/ScitillaComponent/GoToLineDlg.h:90: parse error before `;' token
In file included from ../src/winmain.cpp:18:
../src/Notepad_plus.h: In member function `void
Notepad_plus::updateStatusBar()':
../src/Notepad_plus.h:698: warning: int format, long int arg (arg 3)
../src/Notepad_plus.h:698: warning: int format, long int arg (arg 4)
../src/Notepad_plus.h:698: warning: int format, long int arg (arg 5)
../src/Notepad_plus.h: At top level:
../src/Parameters.h:72: warning: `int decStrVal(const char*)' defined but not
used
../src/Parameters.h:76: warning: `int hexStrVal(const char*)' defined but not
used
../src/Parameters.h:81: warning: `int getKwClassFromName(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
make: *** [winmain.o] Error 1
<<<-------------------end---------------------
What can I do?
Go to the line number 89/90 of GoToLineDlg.h and fix the problem.
Don
ps. if my memory is good, it's due to the illegal cast for the gcc, but it's allowed by VC++ 7
make successfully, and need do these things:
GoToLineDlg.h 89 & 90:
::SetDlgItemInt(_hSelf, ID_CURRLINE, static_cast<unsigned int>((*_ppEditView)->getCurrentLineNumber() + 1), FALSE);
::SetDlgItemInt(_hSelf, ID_LASTLINE, static_cast<unsigned int>((*_ppEditView)->execute(SCI_GETLINECOUNT)), FALSE);
Parameters.h 708:
return static_cast<bool>(_transparentFuncAddr);
Notepad_plus.rc 63:
#include ".\\MISC\\RegExt\\regExtDlg.rc"
413:
POPUP "&?" //delete the ,