Boost logo

Boost-Build :

Subject: Re: [Boost-build] problem while building hello Boost project
From: Bjørn Roald (bjorn_at_[hidden])
Date: 2015-01-23 14:20:40


On 23. jan. 2015 12:13, antonio a wrote:
> Hi,
>
> I am new to boost unit test tool.
> I was trying to build the library linked version so using:
>
> *# libboost_unit_test_framework*
>
> and one of these:
>
> *#.../Boost/boost_1_53_0/GCC_4_6_3/boost/test/unit_test.hpp
> #.../Boost/boost_1_53_0/GCC_4_8_2/boost/test/unit_test.hpp
> #.../Boost/boost_1_53_0/GCC_4_8_2/lib/lib_without_fPIC/include/boost/test/unit_test.hpp
> #.../Boost/boost_1_53_0/boost/test/unit_test.hpp
> *

A bit confusing exactly what you have tried, but see below.

> All of these header generates this error:
>
> *make all
> gcc -O2 -DNDEBUG -I./ -I/.../Boost/boost_1_53_0/ -Wall -c boost_test.c

try g++ rather than gcc, thereby telling the compiler to look for c++
standard library headers.

g++ -O2 -DNDEBUG -I./ -I/.../Boost/boost_1_53_0/ -Wall -c boost_test.c

--
Bjørn

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk