Skip to content

Instantly share code, notes, and snippets.

@andlabs
Created April 29, 2018 18:23
Show Gist options
  • Save andlabs/71aa125d2afbca22ef94aefa4f2bf11f to your computer and use it in GitHub Desktop.
Save andlabs/71aa125d2afbca22ef94aefa4f2bf11f to your computer and use it in GitHub Desktop.
/C/msys64/mingw64/bin/cmake.exe -H/E/github.com/andlabs/libui -B/E/github.com/andlabs/libui/build --check-build-system CMakeFiles/Makefile.cmake 0
/C/msys64/mingw64/bin/cmake.exe -E cmake_progress_start /E/github.com/andlabs/libui/build/CMakeFiles /E/github.com/andlabs/libui/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/e/github.com/andlabs/libui/build'
make -f CMakeFiles/libui.dir/build.make CMakeFiles/libui.dir/depend
make[2]: Entering directory '/e/github.com/andlabs/libui/build'
/C/msys64/mingw64/bin/cmake.exe -E cmake_depends "MSYS Makefiles" /E/github.com/andlabs/libui /E/github.com/andlabs/libui /E/github.com/andlabs/libui/build /E/github.com/andlabs/libui/build /E/github.com/andlabs/libui/build/CMakeFiles/libui.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/e/github.com/andlabs/libui/build'
make -f CMakeFiles/libui.dir/build.make CMakeFiles/libui.dir/build
make[2]: Entering directory '/e/github.com/andlabs/libui/build'
[ 1%] Building CXX object CMakeFiles/libui.dir/windows/utf16.cpp.obj
/C/msys64/mingw64/bin/g++.exe -D_UI_STATIC -Dlibui_EXPORTS -I/E/github.com/andlabs/libui/. -D__MINGW_USE_BROKEN_INTERFACE --std=c++11 -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wno-switch -fvisibility=hidden -o CMakeFiles/libui.dir/windows/utf16.cpp.obj -c /E/github.com/andlabs/libui/windows/utf16.cpp
E:/github.com/andlabs/libui/windows/utf16.cpp: In function 'WCHAR* toUTF16(const char*)':
E:/github.com/andlabs/libui/windows/utf16.cpp:20:37: error: invalid conversion from 'WCHAR* {aka wchar_t*}' to 'uint16_t* {aka short unsigned int*}' [-fpermissive]
n = uiprivUTF16EncodeRune(rune, wp);
^
In file included from E:/github.com/andlabs/libui/common/uipriv.h:6:0,
from E:/github.com/andlabs/libui/windows/uipriv_windows.hpp:5,
from E:/github.com/andlabs/libui/windows/utf16.cpp:2:
E:/github.com/andlabs/libui/common/utf.h:20:15: note: initializing argument 2 of 'size_t uiprivUTF16EncodeRune(uint32_t, uint16_t*)'
extern size_t uiprivUTF16EncodeRune(uint32_t rune, uint16_t *encoded);
^~~~~~~~~~~~~~~~~~~~~
E:/github.com/andlabs/libui/windows/utf16.cpp: In function 'char* toUTF8(const WCHAR*)':
E:/github.com/andlabs/libui/windows/utf16.cpp:35:34: error: invalid conversion from 'const WCHAR* {aka const wchar_t*}' to 'const uint16_t* {aka const short unsigned int*}' [-fpermissive]
n = uiprivUTF16UTF8Count(wstr, 0);
^
In file included from E:/github.com/andlabs/libui/common/uipriv.h:6:0,
from E:/github.com/andlabs/libui/windows/uipriv_windows.hpp:5,
from E:/github.com/andlabs/libui/windows/utf16.cpp:2:
E:/github.com/andlabs/libui/common/utf.h:26:15: note: initializing argument 1 of 'size_t uiprivUTF16UTF8Count(const uint16_t*, size_t)'
extern size_t uiprivUTF16UTF8Count(const uint16_t *s, size_t nElem);
^~~~~~~~~~~~~~~~~~~~
E:/github.com/andlabs/libui/windows/utf16.cpp:39:46: error: invalid conversion from 'const WCHAR* {aka const wchar_t*}' to 'const uint16_t* {aka const short unsigned int*}' [-fpermissive]
wstr = uiprivUTF16DecodeRune(wstr, 0, &rune);
^
In file included from E:/github.com/andlabs/libui/common/uipriv.h:6:0,
from E:/github.com/andlabs/libui/windows/uipriv_windows.hpp:5,
from E:/github.com/andlabs/libui/windows/utf16.cpp:2:
E:/github.com/andlabs/libui/common/utf.h:21:24: note: initializing argument 1 of 'const uint16_t* uiprivUTF16DecodeRune(const uint16_t*, size_t, uint32_t*)'
extern const uint16_t *uiprivUTF16DecodeRune(const uint16_t *s, size_t nElem, uint32_t *rune);
^~~~~~~~~~~~~~~~~~~~~
E:/github.com/andlabs/libui/windows/utf16.cpp:39:31: error: invalid conversion from 'const uint16_t* {aka const short unsigned int*}' to 'const WCHAR* {aka const wchar_t*}' [-fpermissive]
wstr = uiprivUTF16DecodeRune(wstr, 0, &rune);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/libui.dir/build.make:856: CMakeFiles/libui.dir/windows/utf16.cpp.obj] Error 1
make[2]: Leaving directory '/e/github.com/andlabs/libui/build'
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/libui.dir/all] Error 2
make[1]: Leaving directory '/e/github.com/andlabs/libui/build'
make: *** [Makefile:84: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment