Opened 9 years ago

Closed 9 years ago

#511 closed defect (fixed)

compilation error in 'directory_name' and 'basename'

Reported by: Peter Johansson Owned by: Peter Johansson
Priority: minor Milestone: svndigest 0.10
Component: build Version: trunk
Keywords: Cc:

Description

get the following error on Mac OS 10.6:

g++ -DHAVE_CONFIG_H -I. -I../../lib -I.. -I../yat  -I../.. -DNDEBUG -I/opt/local/include/apr-1 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -DDARWIN_10 -I/opt/local/include  -O3 -Wall -MT utility.o -MD -MP -MF .deps/utility.Tpo -c -o utility.o ../../lib/utility.cc
../../lib/utility.cc: In function 'std::string theplu::svndigest::directory_name(std::string)':
../../lib/utility.cc:121: error: invalid conversion from 'const char*' to 'char*'
../../lib/utility.cc:121: error:   initializing argument 1 of 'char* dirname(char*)'
../../lib/utility.cc: In function 'std::string theplu::svndigest::file_name(const std::string&)':
../../lib/utility.cc:127: error: invalid conversion from 'const char*' to 'char*'
../../lib/utility.cc:127: error:   initializing argument 1 of 'char* basename(char*)'
make[2]: *** [utility.o] Error 1

Change History (1)

comment:1 Changed 9 years ago by Peter Johansson

Resolution: fixed
Status: newclosed

(In [1432]) implement file_name and directory_name. fixes #511

Note: See TracTickets for help on using tickets.