Boost logo

Boost Users :

From: Johan Alkemade (johanalkemade_at_[hidden])
Date: 2006-07-27 10:37:37


Well firstly, you need to give g++ a hint about where to find the boost
includes, using the -I parameter.

Second, normally includes go like this: #include
<boost/numeric/conversion/converter_policies.hpp>

On 7/27/06, Fred J. <phddas_at_[hidden]> wrote:
>
> Hi
> could some one point to a link how how to link/compile with boost? or tell
> me whats missing from the makefile below?
> thanks alot
>
>
> #include <converter_policies.hpp>
> using boost::floor;
> ...
> cout << floor(12.45) << endl;
> ...
>
> the make file;
>
> OBJS := $(patsubst %.cpp,%.o,$(wildcard *.cpp))
> COMP = g++
>
> proj: $(OBJS)
> $(COMP) -Wall -o proj $(OBJS)
>
> #-Wall turns on all warnings
>
> clean:
> rm -rf *.o proj
>
> ------------------------------
> Do you Yahoo!?
> Next-gen email? Have it all with the all-new Yahoo! Mail Beta.<http://us.rd.yahoo.com/evt=42241/*http://advision.webevents.yahoo.com/handraisers>
>
>
> _______________________________________________
> 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