linux console
-
Выскакивает ошибка при компиляции консоли под линукс.
g++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../include -I../../../../src/client/console/include -D_GNU_SOURCE -I/usr/local/include -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\" -g -O2 -fno-rtti -fno-exceptions -fno-const-strings -Wno-deprecated -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -MT alarms.lo -MD -MP -MF .deps/alarms.Tpo -c alarms.cpp -fPIC -DPIC -o .libs/alarms.o /usr/include/wx-2.8/wx/wxchar.h: In function 'size_t wxStrlen(const wxChar*)': /usr/include/wx-2.8/wx/wxchar.h:834: error: cannot convert 'const wxChar*' to 'const short unsigned int*' for argument '1' to 'int nx_wcslen(const short unsigned int*)'И вообще она должна компилироватся?

-
Должна. Похоже что у вас wxWidgets собраны под UNICODE, 0.2.19 это не поддерживал. 0.2.20 должен собираться нормально. Пока-что можно попробовать 0.2.20-rc1 или дождаться сегодня-завтра rc2.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login