Boost logo

Boost Users :

Subject: Re: [Boost-users] Linker error on windows
From: Lars Mogensen (larsvmogensen_at_[hidden])
Date: 2010-09-16 11:46:57


In Additional Include Directories I have: D:\src\boost_1_36_0
In Additional Library Directories I have: D:\src\boost_1_36_0\stage\lib

"stage" is the directory where I compiled the BOOST libraries.

I link against: libboost_unit_test_framework-vc90-mt.lib
libboost_math_c99-vc90-mt.lib

Please advice.

2010/9/16 Jared James Thompson <thompsjj_at_[hidden]>

> If you are using Visual Studio you need to have the Boost library path you
> are
> using referenced correctly in
>
> Project>Properties>Configuration Properties>C/C++>General>Additional
> Include
> Directories
>
> and
>
> Project>Properties>Configuration Properties>Linker>General>Additional
> Library
> Directories
>
> have you done this yet?
>
>
> Quoting Lars Mogensen <larsvmogensen_at_[hidden]>:
>
> > Hi,
> >
> > I am using BOOST to do math and have not been able to get the
> > "findroot_demo.cpp" example of root finding to work. There seem to be a
> > reference to rint(), which is not implemented in the C++ library for
> > windows. How can I solve this - my understanding of BOOST is that it is
> > cross-platform?
> >
> > 1>------ Build started: Project: boostfindzero, Configuration: Debug
> Win32
> > ------
> > 1>Compiling...
> > 1>findroot_demo.cpp
> > 1>Linking...
> > 1>findroot_demo.obj : error LNK2019: unresolved external symbol _rint
> > referenced in function "public: static double __cdecl
> > boost::numeric::interval_lib::detail::x86_rounding::to_int(double const
> &)"
> > (?to_int_at_x86_rounding_at_detail@interval_lib_at_numeric@boost@@SANABN_at_Z)
> > 1>D:\dokumenter\lvm_AM\Visual Studio
> > 2008\Projects\boostfindzero\Debug\boostfindzero.exe : fatal error
> LNK1120: 1
> > unresolved externals
> > 1>Build log was saved at "file://d:\dokumenter\lvm_AM\Visual Studio
> > 2008\Projects\boostfindzero\boostfindzero\Debug\BuildLog.htm"
> > 1>boostfindzero - 2 error(s), 0 warning(s)
> > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> ==========
> >
> > Thanks in advance.
> >
> > /Lars
> >
>
>
> --
> Jared James Thompson
> Department of Medicinal Chemistry and Molecular Pharmacology
> Laboratory for Computational Drug Design and Biology
> RHPH 504C
> Heine Pharmacy Building
> 575 Stadium Mall Drive
> West Lafayette, IN 47907-2091
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net