Когда я пытаюсь скомпилировать программу, появляется проблема
Мои шаги:
1) hlaparse -v -sg -test "p2.hla"
2) hla-v p2
Linking via [ld -arch i386 -o "p2" "p2.o" "/Users/( ͡° ʖ̯ ͡°)/Desktop/hla/a/hlalib.a"]
ld: warning: No version-min specified on command line
ld: warning: -macosx_version_min not specified, assuming 10.11
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
Undefined symbols for architecture i386:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture i386
Error returned by ld = 256
Редактировать:
После:
hla -main:_main -l"macosx_version_min 10.9" -l"lSystem" -l"no_pie" p2.hla
Я получил:
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
Редактировать 2: Работает независимо отэто предупреждение.Спасибо