eranif wrote:Fixed in git master, try pulling changes and build it again
Eran
That fixed that part of it. It looked like it was going strong, but then I got an error.
I also got 276 of these messages about ../PCH/precompiled_header_release.h.gch not used because __WX__ not defined:
Code: Select all
C:/MinGW-4.8.1-3/bin/g++.exe -include ../PCH/precompiled_header_release.h -c "C:/codelite/CodeFormatter/clClangFormatLocator.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets-3.0.2/lib/gcc_dll/mswu -IC:/wxWidgets-3.0.2/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -O2 -Winvalid-pch -DWXUSINGDLL_SDK -DWXUSINGDLL_CL -o ./WinReleaseUnicode/clClangFormatLocator.cpp.o -I. -I. -I../Interfaces -I../CodeLite -I../Plugin -I../sdk/wxsqlite3/include -I../PCH
cc1plus.exe: warning: ./../PCH/precompiled_header_release.h.gch: not used because `__WX__' not defined [-Winvalid-pch]
cc1plus.exe: warning: ./../PCH/precompiled_header_release.h.gch: not used because `__WX__' not defined [-Winvalid-pch]
cc1plus.exe: warning: ./../PCH/precompiled_header_release.h.gch: not used because `__WX__' not defined [-Winvalid-pch]
The actual errors are in this second block:
Code: Select all
C:/MinGW-4.8.1-3/bin/g++.exe -include ../PCH/precompiled_header_release.h -c "C:/codelite/CodeFormatter/astyle_main.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets-3.0.2/lib/gcc_dll/mswu -IC:/wxWidgets-3.0.2/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -O2 -Winvalid-pch -DWXUSINGDLL_SDK -DWXUSINGDLL_CL -o ./WinReleaseUnicode/astyle_main.cpp.o -I. -I. -I../Interfaces -I../CodeLite -I../Plugin -I../sdk/wxsqlite3/include -I../PCH
cc1plus.exe: warning: ./../PCH/precompiled_header_release.h.gch: not used because `__WX__' not defined [-Winvalid-pch]
In file included from C:/codelite/CodeFormatter/astyle_main.cpp:53:0:
C:/codelite/CodeFormatter/astyle_main.h:82:0: warning: "_" redefined [enabled by default]
#define _(a) localizer.settext(a)
^
In file included from C:/wxWidgets-3.0.2/include/wx/intl.h:17:0,
from C:/wxWidgets-3.0.2/include/wx/wx.h:22,
from ./../PCH/precompiled_header_release.h:31,
from <command-line>:0:
C:/wxWidgets-3.0.2/include/wx/translation.h:38:0: note: this is the location of the previous definition
#define _(s) wxGetTranslation((s))
^
C:/MinGW-4.8.1-3/bin/g++.exe -include ../PCH/precompiled_header_release.h -c "C:/codelite/CodeFormatter/ASBeautifier.cpp" -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets-3.0.2/lib/gcc_dll/mswu -IC:/wxWidgets-3.0.2/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -O2 -Winvalid-pch -DWXUSINGDLL_SDK -DWXUSINGDLL_CL -o ./WinReleaseUnicode/ASBeautifier.cpp.o -I. -I. -I../Interfaces -I../CodeLite -I../Plugin -I../sdk/wxsqlite3/include -I../PCH
cc1plus.exe: warning: ./../PCH/precompiled_header_release.h.gch: not used because `__WX__' not defined [-Winvalid-pch]
C:/codelite/CodeFormatter/astyle_main.cpp: In member function 'void astyle::ASConsole::displayLastError()':
C:/codelite/CodeFormatter/astyle_main.cpp:721:23: error: cannot convert 'LPSTR {aka char*}' to 'LPWSTR {aka wchar_t*}' for argument '5' to 'DWORD FormatMessageW(DWORD, PCVOID, DWORD, DWORD, LPWSTR, DWORD, char**)'
NULL);
^
C:/codelite/CodeFormatter/astyle_main.cpp: In member function 'std::string astyle::ASConsole::getCurrentDirectory(const string&) const':
C:/codelite/CodeFormatter/astyle_main.cpp:739:53: error: cannot convert 'char*' to 'LPWSTR {aka wchar_t*}' for argument '2' to 'DWORD GetCurrentDirectoryW(DWORD, LPWSTR)'
if(!GetCurrentDirectory(sizeof(currdir), currdir)) error("Cannot find file", fileName_.c_str());
^
C:/codelite/CodeFormatter/astyle_main.cpp: In member function 'void astyle::ASConsole::getFileNames(const string&, const string&)':
C:/codelite/CodeFormatter/astyle_main.cpp:758:66: error: cannot convert 'const char*' to 'LPCWSTR {aka const wchar_t*}' for argument '1' to 'void* FindFirstFileW(LPCWSTR, LPWIN32_FIND_DATAW)'
HANDLE hFind = FindFirstFile(firstFile.c_str(), &findFileData);
^
C:/codelite/CodeFormatter/astyle_main.cpp:779:67: error: conversion from 'wxString' to non-scalar type 'std::string {aka std::basic_string<char>}' requested
string subDirectoryPath = directory + g_fileSeparator + findFileData.cFileName;
^
C:/codelite/CodeFormatter/astyle_main.cpp:788:59: error: conversion from 'wxString' to non-scalar type 'std::string {aka std::basic_string<char>}' requested
string filePathName = directory + g_fileSeparator + findFileData.cFileName;
^
C:/codelite/CodeFormatter/astyle_main.cpp:792:60: error: no matching function for call to 'astyle::ASConsole::wildcmp(const char*, WCHAR [260])'
if(wildcmp(wildcard.c_str(), findFileData.cFileName)) {
^
C:/codelite/CodeFormatter/astyle_main.cpp:792:60: note: candidate is:
In file included from C:/codelite/CodeFormatter/astyle_main.cpp:53:0:
C:/codelite/CodeFormatter/astyle_main.h:332:9: note: int astyle::ASConsole::wildcmp(const char*, const char*) const
int wildcmp(const char* wild, const char* data) const;
^
C:/codelite/CodeFormatter/astyle_main.h:332:9: note: no known conversion for argument 2 from 'WCHAR [260] {aka wchar_t [260]}' to 'const char*'
C:/codelite/CodeFormatter/astyle_main.cpp: In member function 'std::string astyle::ASConsole::getNumberFormat(int, size_t) const':
C:/codelite/CodeFormatter/astyle_main.cpp:838:75: error: cannot convert 'const char*' to 'LPCWSTR {aka const wchar_t*}' for argument '3' to 'int GetNumberFormatW(LCID, DWORD, LPCWSTR, const NUMBERFMTW*, LPWSTR, int)'
int outSize = ::GetNumberFormat(lcid, 0, number.c_str(), NULL, NULL, 0);
^
C:/codelite/CodeFormatter/astyle_main.cpp:841:69: error: cannot convert 'const char*' to 'LPCWSTR {aka const wchar_t*}' for argument '3' to 'int GetNumberFormatW(LCID, DWORD, LPCWSTR, const NUMBERFMTW*, LPWSTR, int)'
::GetNumberFormat(lcid, 0, number.c_str(), NULL, outBuf, outSize);
^
C:/codelite/CodeFormatter/astyle_main.cpp:848:59: error: cannot convert 'char*' to 'LPWSTR {aka wchar_t*}' for argument '3' to 'int GetLocaleInfoW(LCID, LCTYPE, LPWSTR, int)'
::GetLocaleInfo(lcid, LOCALE_SDECIMAL, decBuf, decSize);
^
mingw32-make.exe[1]: *** [WinReleaseUnicode/astyle_main.cpp.o] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
CodeFormatter.mk:131: recipe for target 'WinReleaseUnicode/astyle_main.cpp.o' failed
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory 'C:/codelite/CodeFormatter'
Makefile:4: recipe for target 'All' failed
10 errors, 74 warnings, total time: 00:08:05 seconds