Skip to main content
Known Participant
October 23, 2024
Answered

ld: symbol(s) not found for architecture x86_64

  • October 23, 2024
  • 2 replies
  • 893 views

Hi All, I am getting below error when trying to build my native c++ plugin in xcode 15.2. 

Can anyone please help.

Thanks

 

Undefined symbols for architecture x86_64:

  "boost::this_thread::interruption_point()", referenced from:

      boost::condition_variable::wait(boost::unique_lock<boost::mutex>&) in HttpUtils.o

  "boost::this_thread::disable_interruption::disable_interruption()", referenced from:

      boost::shared_mutex::lock() in HttpUtils.o

      boost::shared_mutex::lock_shared() in HttpUtils.o

  "boost::this_thread::disable_interruption::~disable_interruption()", referenced from:

      boost::shared_mutex::lock() in HttpUtils.o

      boost::shared_mutex::lock_shared() in HttpUtils.o

  "boost::detail::get_current_thread_data()", referenced from:

      boost::detail::interruption_checker::interruption_checker(_opaque_pthread_mutex_t*, _opaque_pthread_cond_t*) in HttpUtils.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

This topic has been closed for replies.
Correct answer Ravi25527747efwu

Hi @Alam5EC6

Seems, Boost_thread library is missing in you project. You can add the library by following the below steps.
1.) Navigate to the "Build Phases" tab.
2.) Under "Link Binary With Libraries," click the "+" button.
3.) Click on "Add Other" and navigate to Boost framework (<SDK folder>/build/mac/release_cocoa64/pakacgefolder/contents/frameworks).
4.) Add the "boost_thread.framework" library.

- Ravi Pratap Sahu

2 replies

Ravi25527747efwuCorrect answer
Inspiring
October 25, 2024

Hi @Alam5EC6

Seems, Boost_thread library is missing in you project. You can add the library by following the below steps.
1.) Navigate to the "Build Phases" tab.
2.) Under "Link Binary With Libraries," click the "+" button.
3.) Click on "Add Other" and navigate to Boost framework (<SDK folder>/build/mac/release_cocoa64/pakacgefolder/contents/frameworks).
4.) Add the "boost_thread.framework" library.

- Ravi Pratap Sahu

Community Expert
October 24, 2024

Hi @Alam5EC6,

Please check if the sample plugins shipped with the SDK build for you or not. If not then cross check that you have set the dev env as per the recommendation by Adobe. You can check the documentation of the SDK for the recommended setup

-Manan

-Manan