Boost logo

Boost Users :

From: Eduard Diner (Eduard.Diner_at_[hidden])
Date: 2007-07-31 05:17:28


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_path<fs::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
-------------


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