
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.

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@yahoo.com> 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Fred J.
-
Johan Alkemade