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 271687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:12:14+00:00 2026-05-12T00:12:14+00:00

I am using boost build in my project and now i want to use

  • 0

I am using boost build in my project and now i want to use boost date_time. I’ve googled and found that it should (probably) be used this way:

exe test : test.cpp /boost/date_time//date_time ;

but then i get this message:

error: Unable to find file or target named
error:     '/boost/date_time//date_time'
error: referred from project at
error:     '.'

(when i use -lboost_date_time as a gcc flag manually, then it works correctly)
I thought that the library oly has to be added to site-config.jam, so i tried adding this:

project /boost/date_time ;
lib date_time ;

but it has no effect.

What am i doing wrong?

Thaks

Edit:
I’m not looking for a solution that just works. I need something that will work for everyone with correct install of boost.build and boost libraries.

  • 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-05-12T00:12:14+00:00Added an answer on May 12, 2026 at 12:12 am

    I recommend that you take a look at contrib/boost.jam module in the current versions of Boost.Build. It allows you to declare necessary targets for every library almost automatically.

    Or original attempt is not exactly right. To have “/site-config//boost_date_time” working you need to have this in site-config.jam:

    project site-config ;
    searched-lib boost_date_time ;
    

    This will work, on Linux, if the library file is named libboost_date_time.so (which is the case if Boost was built with –layout=system). On Windows, you don’t actually need anything of that, thanks to autolinking.

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

Sidebar

Related Questions

I am starting a new c++ project and I want to use Boost.Build /
I'm using Boost.PropertyTree for a project and I want to use user-defined types for
I am trying to build a project using Boost's Asio and I am having
I've been using Boost::regex and Boost::regex_search and found that when I run the regex
Using boost build, if I can link to a boost python library with this
I'm using boost::date_time in my project. When date is not valid it thorws std::out_of_range
I'm trying to build s-expression objects using boost::proto with the following terminals: typedef proto::terminal<
I'm trying to build Boost 1.49.0 using MSVC2010 and it fails with the following
I want to run code which needs boost libraries. I built it using CMake.
I am not using boost libraries. How can i do this using STL? class

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.