ya, Nicola suggest that as well. Didn't work for me for some reason.

it seems to be a problem with the order in which the arguments are given to
g++, eg.
   g++ mgiza.cpp -lboost_system
works, but not
   g++ -lboost_system mgiza.cpp

Had enough with trying to get cmake to work. Did it the old fashion way

http://mgizapp.svn.sourceforge.net/viewvc/mgizapp/trunk/mgizapp/manual-compile/


On 14 January 2013 14:49, Lane Schwartz <[email protected]> wrote:

> Did you try setting LD_LIBRARY_PATH to include the custom boost path?
>
> On Mon, Jan 14, 2013 at 7:09 AM, Hieu Hoang <[email protected]> wrote:
> > Hi all
> >
> > does anyone know how to compile mgiza when the boost library isn't in the
> > default path?
> >
> > I tried
> >    export BOOST_ROOT=/home/hieu/workspace/boost/boost_1_51_0/
> >    export BOOST_LIBRARYDIR=/home/hieu/workspace/boost/boost_1_51_0/lib64/
> >   cmake .
> >   make
> >
> > but it gives my the error:
> >    CMakeFiles/d4norm.dir/d4norm.cxx.o: In function
> > `__static_initialization_and_destruction_0(int, int)':
> >    d4norm.cxx:(.text+0x962): undefined reference to
> > `boost::system::generic_category()'
> >    ....
> >
> >
> > --
> > Research Associate
> > University of Edinburgh
> > http://www.hoang.co.uk
> >
> > _______________________________________________
> > Moses-support mailing list
> > [email protected]
> > http://mailman.mit.edu/mailman/listinfo/moses-support
> >
>
>
>
> --
> When a place gets crowded enough to require ID's, social collapse is not
> far away.  It is time to go elsewhere.  The best thing about space travel
> is that it made it possible to go elsewhere.
>                 -- R.A. Heinlein, "Time Enough For Love"
>
>


-- 
Research Associate
University of Edinburgh
http://www.hoang.co.uk
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to