Skip to content

Instantly share code, notes, and snippets.

@MartijnBraam
Created February 22, 2019 12:30
Show Gist options
  • Save MartijnBraam/1ec4d8d23cec47f2ef434f4e4bc40b64 to your computer and use it in GitHub Desktop.
Save MartijnBraam/1ec4d8d23cec47f2ef434f4e4bc40b64 to your computer and use it in GitHub Desktop.
c++ worldreader.cpp -o worldreader -lsqlite3 -lz -licuuc -licui18n -std=gnu++17 -g
worldreader.cpp: In function ‘void searchForBooks(std::__cxx11::string, std::vector<Book>*)’:
worldreader.cpp:85:13: error: ‘UnicodeString’ was not declared in this scope
UnicodeString unicodeBook = UnicodeString::fromUTF8(bookString);
^~~~~~~~~~~~~
worldreader.cpp:85:13: note: suggested alternative:
In file included from /usr/include/unicode/translit.h:25,
from worldreader.cpp:12:
/usr/include/unicode/unistr.h:289:20: note: ‘icu_63::UnicodeString’
class U_COMMON_API UnicodeString : public Replaceable
^~~~~~~~~~~~~
worldreader.cpp:86:13: error: ‘unicodeBook’ was not declared in this scope
unicodeBook = unicodeBook.unescape();
^~~~~~~~~~~
worldreader.cpp: In function ‘int main()’:
worldreader.cpp:327:13: error: ‘UnicodeString’ was not declared in this scope
UnicodeString unicodeSlug = UnicodeString::fromUTF8(books[index].title);
^~~~~~~~~~~~~
worldreader.cpp:327:13: note: suggested alternative:
In file included from /usr/include/unicode/translit.h:25,
from worldreader.cpp:12:
/usr/include/unicode/unistr.h:289:20: note: ‘icu_63::UnicodeString’
class U_COMMON_API UnicodeString : public Replaceable
^~~~~~~~~~~~~
worldreader.cpp:330:17: error: ‘Transliterator’ was not declared in this scope
Transliterator *accentsConverter = Transliterator::createInstance(
^~~~~~~~~~~~~~
worldreader.cpp:330:17: note: suggested alternative:
In file included from worldreader.cpp:12:
/usr/include/unicode/translit.h:488:18: note: ‘icu_63::Transliterator’
class U_I18N_API Transliterator : public UObject {
^~~~~~~~~~~~~~
worldreader.cpp:330:33: error: ‘accentsConverter’ was not declared in this scope
Transliterator *accentsConverter = Transliterator::createInstance(
^~~~~~~~~~~~~~~~
worldreader.cpp:330:33: note: suggested alternative: ‘u_fgetConverter’
Transliterator *accentsConverter = Transliterator::createInstance(
^~~~~~~~~~~~~~~~
u_fgetConverter
worldreader.cpp:330:52: error: ‘Transliterator’ is not a class, namespace, or enumeration
Transliterator *accentsConverter = Transliterator::createInstance(
^~~~~~~~~~~~~~
worldreader.cpp:332:49: error: ‘unicodeSlug’ was not declared in this scope
accentsConverter->transliterate(unicodeSlug);
^~~~~~~~~~~
make: *** [Makefile:2: all] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment