Boost logo

Boost Users :

Subject: Re: [Boost-users] problems building with boost filesystem on Solaris 9
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-02-26 10:55:38


Guy LaCrosse wrote:

> The gcc34 libraries are the result of building boost 1.38 on Solaris 9.

Ok, I'm blind. Let's try again:

> STATIC_LIB_OPT = -Wl,"-Bstatic"
> BOOST_LIBPATH = -L/export/home/mlacrosse/boost/lib/
> -lboost_filesystem-gcc34-mt -lboost_system-gcc34-mt
> LIBS = $(BOOST_LIBS) $(TNLIBS) $(BASE_LIBS) $(LOCALLIBS)
> tpg5webapp: tpg5webapp.cpp ConfigFile.cpp
> $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) $(LIBS) \
> -o tpg5webapp ConfigFile.cpp tpg5webapp.cpp

For static linking to work, the -l option must be present *after* the .cpp.

- Volodya


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