Ошибка компоновщика при запуске программы icu4 c - PullRequest
0 голосов
/ 09 апреля 2020

Я установил 64.2 версию библиотеки icu4 c и, как показано в этом блоге, https://begriffs.com/posts/2019-05-23-unicode-icu.html попытался запустить программу codeunit. c. Но я получаю следующую ошибку

Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin19.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.15.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name codeunit.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-sdk-version=10.15 -target-cpu penryn -dwarf-column-info -debugger-tuning=lldb -ggnu-pubnames -target-linker-version 530 -v -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/11.0.0 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I /usr/local/include -I/usr/local/include -Wall -Wextra -Wno-framework-include-private-from-public -Wno-atimport-in-framework-header -Wno-extra-semi-stmt -Wno-quoted-include-in-framework-header -pedantic -std=c99 -fdebug-compilation-dir /Users/i519765/personal/experiments/icuexp -ferror-limit 19 -fmessage-length 235 -stack-protector 1 -fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fobjc-runtime=macosx-10.15.0 -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/hx/0wn9dywx2zn45qn_1btbz_vc0000gn/T/codeunit-1fbf17.o -x c codeunit.c
clang -cc1 version 11.0.0 (clang-1100.0.33.17) default target x86_64-apple-darwin19.3.0
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include"
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/Library/Frameworks"
ignoring duplicate directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /Library/Developer/CommandLineTools/usr/lib/clang/11.0.0/include
 /Library/Developer/CommandLineTools/usr/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory)
End of search list.
 "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -no_deduplicate -dynamic -arch x86_64 -macosx_version_min 10.15.0 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -o codeunit /var/folders/hx/0wn9dywx2zn45qn_1btbz_vc0000gn/T/codeunit-1fbf17.o -L/usr/local/lib -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/11.0.0/lib/darwin/libclang_rt.osx.a
Undefined symbols for architecture x86_64:
  "_u_errorName_67", referenced from:
      _main in codeunit-1fbf17.o
  "_u_fclose_67", referenced from:
      _main in codeunit-1fbf17.o
  "_u_fgets_67", referenced from:
      _main in codeunit-1fbf17.o
  "_u_finit_67", referenced from:
      _main in codeunit-1fbf17.o
  "_u_fungetc_67", referenced from:
      _main in codeunit-1fbf17.o
  "_u_strToUTF32_67", referenced from:
      _main in codeunit-1fbf17.o
  "_u_strlen_67", referenced from:
      _main in codeunit-1fbf17.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)```
...