Hi, I want to use the filesystem library. For simplicity I first tried to compile the simple_ls.cpp (provided at: http://www.boost.org/libs/filesystem/doc/index.htm). Unfortunately I get lots of compiler-errors. For example the line 22:
fs::path full_path( fs::initial_pathfs::path() );
splitARFF.cpp:22: error: expected primary-expression before '>' token splitARFF.cpp:22: error: expected primary-expression before ')' token Does anyone have an idea how to solve the problem? THANKS The Makefile I used: ------------- OBJ = splitARFF.o CC = g++ SRC = $(OBJ:%.o=%.cpp) HDR = $(OBJ:%.o=%.h) LDFLAGS = -Wall -pg CFLAGS = -g -pg all: boostARFF boostARFF: splitARFF.o $(CC) $(LDFLAGS) $(OBJ) $(LIBS) -L/usr/lib -lboost_filesystem %.o: %.cpp $(CC) -c $(CFLAGS) $(SRC) -I/usr/include -------------