just found out that I am using boost version 1.45, and gcc version 3.3.6

/apps/boost/1.45.0/lib:/apps/gcc/4.3.5/lib

when I tried to use higher version of gcc (e.g. 4.4.0, 4.5.1, 4.6.0), I am all getting errors regarding boost

g++ -lboost_filesystem -Wno-deprecated -g src/sync.cpp -o obj/sync_dir

In file included from /usr/include/boost/mpl/apply.hpp:23,
from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/filesystem/path.hpp:16,
from /usr/include/boost/filesystem/operations.hpp:18,
from src/sync.cpp:17:
/usr/include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
/usr/include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("
In file included from /usr/include/boost/mpl/bind.hpp:27,
from /usr/include/boost/mpl/lambda.hpp:18,
from /usr/include/boost/mpl/apply.hpp:25,
from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/filesystem/path.hpp:16,
from /usr/include/boost/filesystem/operations.hpp:18,
from src/sync.cpp:17:
/usr/include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
/usr/include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("
In file included from /usr/include/boost/mpl/lambda.hpp:18,
from /usr/include/boost/mpl/apply.hpp:25,
from /usr/include/boost/iterator/iterator_facade.hpp:34,
from /usr/include/boost/filesystem/path.hpp:16,
from /usr/include/boost/filesystem/operations.hpp:18,
from src/sync.cpp:17:
/usr/include/boost/mpl/bind.hpp:364:31: error: missing binary operator before token "("

please help,
thanks,
Rudy