Menu

#6 Path for BOOST

pending
nobody
None
5
2012-04-22
2012-04-15
Anonymous
No

(this is a classic) the file config/linux-gcc.mak must include an I directive if Boost is not installed in /usr/lib (where gcc reads by default), eg. in case of manual installation
> debug : OBJ_FLAGS += -g -D_DEBUG -I $(BOOST_HOME)
> release : OBJ_FLAGS += -O2 -DNDEBUG -I $(BOOST_HOME)

Discussion

  • Cassio Neri

    Cassio Neri - 2012-04-22

    Thanks for reporting.

    Indeed, when Boost is installed through your distro's package manager, it's likely that its header files will be installed in a system directory (e.g. /usr/include) where GCC can find them.

    On the other hand, if you install Boost manually (which many people do for good reasons), then the header files won't be found. The fix suggested by Lourenco works for this case.

    However the fix will break the build for those who have boost header files where GCC can find them and, therefore, have left BOOS_HOME empty in config.mak.

    I'll try to fix this issue in a way that works for all users.

     
  • Cassio Neri

    Cassio Neri - 2012-04-22
    • status: open --> pending
     

Log in to post a comment.