Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:16:04+00:00 2026-06-05T17:16:04+00:00

Steps: 1. sudo port boost The boost file installed in /opt/local/boost, library files are

  • 0

Steps:
1. sudo port boost
The boost file installed in /opt/local/boost, library files are in /opt/local/lib

2. use XCode to create c++ project

#include <iostream>
#include <boost/asio.hpp>
int main () {
    return 0;
}

3. set XCode to find out boost
in “Build Settings” -> “HEADER_SEARCH_PATHS”
in both Debug and Release add path /opt/local/include

4. “Build Settings” -> “LIBRARY_SEARCH_PATHS” –> add /opt/local/lib both for debug and release.

5. build program and failed.
Error Messages,

Undefined symbols for architecture x86_64:
  "boost::system::generic_category()", referenced from:
  ___cxx_global_var_init1 in main.o
  ___cxx_global_var_init2 in main.o
  "boost::system::system_category()", referenced from:
  ___cxx_global_var_init3 in main.o
  boost::asio::error::get_system_category() in main.o
  "boost::asio::error::get_netdb_category()", referenced from:
  ___cxx_global_var_init5 in main.o <br>
  "boost::asio::error::get_addrinfo_category()", referenced from:
  ___cxx_global_var_init6 in main.o <br>
  "boost::asio::error::get_misc_category()", referenced from:
  ___cxx_global_var_init7 in main.o <br>
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Am I wrong in the procedure?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:16:06+00:00Added an answer on June 5, 2026 at 5:16 pm

    You need to link with Boost.System, which should be in /opt/local/lib/libboost_system (with some suffix, that depends on how you built boost)

    Add that to your Xcode project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Steps to reproduce: Create a new C# console project. Write some code: class Foo
I recently installed PHP5 with Macports using sudo port install php5 +imap . However,
What steps should I follow to upgrade a Ruby project from 1.8.6 to 1.8.7?
I have installed CakePHP 2.0 framwork using steps below: 1. Start the terminal 2.
I followed these steps: Download MacRuby. Double-click on the zip file to extract it
I have installed ffmpeg and x264 folloowing the steps in this documentation : http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
Ubuntu is running on Amazon EC2, version 10.10 installed java using sudo apt-get install
Steps: Run the build including unit tests. Expected result: the unit tests are executed
First steps in FreeBSD: trying to run my installation script. Fast help needed: #
What steps are needed to compile Version Information inside a windows DLL from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.