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

  • SEARCH
  • Home
  • 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 9122023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:59:41+00:00 2026-06-17T05:59:41+00:00

How can I configure g++ to use boost libraries? I Googled and tried many

  • 0

How can I configure g++ to use boost libraries? I Googled and tried many combinations but failed. I managed to get it working a few weeks ago …

g++ test.cpp -o test -lboost
g++ test.cpp -o test -lboost_spirit

And afew with -I and -L flags … but I always get

/usr/bin/ld: cannot find -lboost
collect2: error: ld returned 1 exit status

Am on Arch Linux. I will also like to know how to use Boost with Eclipse … Looks like boost should have installed correctly?

[jiewmeng@JM-LAPTOP ~]$ ls /usr/include/boost/
accumulators                  move
algorithm                     mpi
aligned_storage.hpp           mpi.hpp
any.hpp                       mpl
archive                       msm
array.hpp                     multi_array
asio                          multi_array.hpp
asio.hpp                      multi_index
assert.hpp                    multi_index_container.hpp
assign                        multi_index_container_fwd.hpp
assign.hpp                    next_prior.hpp
bimap                         non_type.hpp
bimap.hpp                     noncopyable.hpp
bind                          nondet_random.hpp
bind.hpp                      none.hpp
blank.hpp                     none_t.hpp
blank_fwd.hpp                 numeric
call_traits.hpp               operators.hpp
cast.hpp                      optional
cerrno.hpp                    optional.hpp
checked_delete.hpp            parameter
chrono                        parameter.hpp
chrono.hpp                    pending
circular_buffer               phoenix
circular_buffer.hpp           phoenix.hpp
circular_buffer_fwd.hpp       pointee.hpp
compatibility                 pointer_cast.hpp
compressed_pair.hpp           pointer_to_other.hpp
concept                       polygon
concept_archetype.hpp         pool
concept_check                 preprocessor
concept_check.hpp             preprocessor.hpp
config                        program_options
config.hpp                    program_options.hpp
container                     progress.hpp
crc.hpp                       property_map
cregex.hpp                    property_tree
cstdint.hpp                   proto
cstdlib.hpp                   ptr_container
current_function.hpp          python
date_time                     python.hpp
date_time.hpp                 random
detail                        random.hpp
dynamic_bitset                range
dynamic_bitset.hpp            range.hpp
dynamic_bitset_fwd.hpp        ratio
enable_shared_from_this.hpp   ratio.hpp
exception                     rational.hpp
exception.hpp                 ref.hpp
exception_ptr.hpp             regex
filesystem                    regex.h
filesystem.hpp                regex.hpp
flyweight                     regex_fwd.hpp
flyweight.hpp                 scope_exit.hpp
foreach.hpp                   scoped_array.hpp
foreach_fwd.hpp               scoped_ptr.hpp
format                        serialization
format.hpp                    shared_array.hpp
function                      shared_container_iterator.hpp
function.hpp                  shared_ptr.hpp
function_equal.hpp            signal.hpp
function_output_iterator.hpp  signals
function_types                signals.hpp
functional                    signals2
functional.hpp                signals2.hpp
fusion                        smart_ptr
generator_iterator.hpp        smart_ptr.hpp
geometry                      spirit
geometry.hpp                  spirit.hpp
get_pointer.hpp               statechart
gil                           static_assert.hpp
graph                         strong_typedef.hpp
heap                          swap.hpp
icl                           system
implicit_cast.hpp             test
indirect_reference.hpp        thread
integer                       thread.hpp
integer.hpp                   throw_exception.hpp
integer_fwd.hpp               timer
integer_traits.hpp            timer.hpp
interprocess                  token_functions.hpp
intrusive                     token_iterator.hpp
intrusive_ptr.hpp             tokenizer.hpp
io                            tr1
io_fwd.hpp                    tuple
iostreams                     type.hpp
is_placeholder.hpp            type_traits
iterator                      type_traits.hpp
iterator.hpp                  typeof
iterator_adaptors.hpp         units
lambda                        unordered
last_value.hpp                unordered_map.hpp
lexical_cast.hpp              unordered_set.hpp
limits.hpp                    utility
local_function                utility.hpp
local_function.hpp            uuid
locale                        variant
locale.hpp                    variant.hpp
logic                         version.hpp
make_shared.hpp               visit_each.hpp
math                          wave
math_fwd.hpp                  wave.hpp
mem_fn.hpp                    weak_ptr.hpp
memory_order.hpp              xpressive
  • 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-17T05:59:42+00:00Added an answer on June 17, 2026 at 5:59 am

    There is no boost library and there is no boost_spirit library to link against. Spirit is a header only library, you only need to set the include path to your boost installation. On a Linux system it is usually installed under /usr/include which is the default, so you don’t even need to do that.

    To get boost on Arch Linux:

    pacman -S boost boost-libs
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little problem with autoconf, I know that you can use configure.ac
Can I configure the VS.NET 2008 IDE to use gcc as a compiler?
I try to configure varnish so it can handle jsonp. I use as the
When I try to use boost on an old Linux system, I get the
how i can configure the Test Project of visual studio to use all CPU's
I know how to use Perl's Getopt::Long, but I'm not sure how I can
Could somebody please tell me how I can configure iReport 3.5 (nb) to use
How can I use configure and make tools to specify to use 64 bit
I am planning to use RAMJobStore for Quartz.net. From my reading, we can configure
Can I configure jstree to use the html_data plugin to load the initial data

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.