[Dune] Problem with linking Boost

Christoph GrĂ¼ninger christoph.grueninger at iws.uni-stuttgart.de
Tue Apr 28 17:44:40 CEST 2015


Hi Aleksejs,
you have to check the actually passed flags. Use VERBOSE=1 for your make
call.

Bye
Christoph

Am 28.04.2015 um 17:42 schrieb Aleksejs Fomins:
> Dear Dune,
> 
> I am trying to compile our finite element EM code Hades3d with the new Boost 1.58.0, and unfortunately I get the error
> 
> ----------------------------------------------------------------------------------------------------------------
> Linking CXX executable hades3ddgfd
> CMakeFiles/hades3ddgfd.dir/hades3ddgfd.cc.o: In function `__static_initialization_and_destruction_0(int, int)':
> hades3ddgfd.cc:(.text+0x8454): undefined reference to `boost::system::generic_category()'
> ----------------------------------------------------------------------------------------------------------------
> 
> Note:
> * Boost is found by the dunecontrol.
> * add_dune_boost_flags(hades3ddgfd)  is done for this file in the CMake file
> * Finding Boost is performed in the lowest-level CMake file
> 
> find_package(Boost)
> if(Boost_FOUND)
>     include_directories(${Boost_INCLUDE_DIRS})
> else(Boost_FOUND)
> 
> * -lboost_system is specified in the opts file.
> 
> 
> I am sending the opts file, the two corresponding cmake files, and the output log of the dunecontrol
> 
> Please help,
> Aleksejs
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 

-- 
People who are more than casually interested in computers should have
at least some idea of what the underlying hardware is like. Otherwise
the programs they write will be pretty weird.         -- Donald Knuth

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150428/a38fb43e/attachment.sig>


More information about the Dune mailing list