Code Monkey home page Code Monkey logo

Comments (3)

torbjoernk avatar torbjoernk commented on July 18, 2024

How am I supposed to specify the location of the Boost headers and static libs on Windows with VS2015 when using the provided solution file?

I've tried it with Boost 1.61 freshly downloaded and compiled with v140 (VS 2015) (.\bootstrap.bat, .\b2 --prefix=MYPATH).

Then, in the solution file, I specified in the target properties under C/C++ -> General -> Additional Include Directories the path to MYPATH/include/boost_1_61/ and for Linker -> General -> Additional Library Directories MYPATH/lib as well as for Linker -> Input -> Additional Dependencies libboost_filesystem-vc140-mt-1_61.lib and libboost_system-vc140_mt-1_61.lib (and the -gd for the Debug build).

Compiles fine (i.e. finds headers) but fails at linker step with bunch of unresolved external symbol to boost::system and boost::filesystem.

from cpp-dependencies.

dascandy avatar dascandy commented on July 18, 2024

That should have worked. I've got it working with 1.58 on VS2015 and 1.62 on VS2013. That may be a library order problem.

from cpp-dependencies.

torbjoernk avatar torbjoernk commented on July 18, 2024

Found my error: I was building/trying the default-selected Release and Debug, which are x64 (i.e. 64bit). My boost was compiled for x86 (i.e. 32bit). Works find now. 👍

from cpp-dependencies.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.