Я пытаюсь создать консольное приложение, написанное на C++, в MacOS. Приложение ссылается на стороннюю библиотеку, для которой требуются некоторые особенности Apple:
Код: Выделить всё
ld: Undefined symbols:
_NSLog, referenced from:
onnxruntime::logging::AppleLogSink::SendImpl(std::__1::chrono::time_point const&, std::__1::basic_string const&, onnxruntime::logging::Capture const&) in libonnxruntime_minimal.a[385](apple_log_sink.mm.o)
___CFConstantStringClassReference, referenced from:
in libonnxruntime_minimal.a[385](apple_log_sink.mm.o)
I am using cmake.
Please advise, how to correctly add in my
Код: Выделить всё
CMakeLists.txtFrom what I found so far this should be in some Apple library or framework called "Foundation". However, I can't find how do I PROPERLY add it in
Код: Выделить всё
CMakeLists.txtИсточник: https://stackoverflow.com/questions/781 ... m-on-macos
Мобильная версия