[EMAIL PROTECTED] wrote:
>[EMAIL PROTECTED] (Colin Watson) writes:
>> The code then compiles fine - well, there are a few warnings
>> (two-digit years - I can only hope this is just something that the Psion
>> link protocol requires), but nothing fatal.
>
>Now I get:
>
>Making all in plpftp
>make[1]: Entering directory `/home/andre/plptools-0.6/plpftp'
>g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../lib    -O2 -Wall -c ftp.cc
>ftp.cc: In method `int ftp::session(rfsv &, rpcs &, int, char **)':
>ftp.cc:339: warning: `%c' yields only last 2 digits of year in some locales
>ftp.cc:369: warning: `%c' yields only last 2 digits of year in some locales
>ftp.cc:461: warning: `%c' yields only last 2 digits of year in some locales
>ftp.cc: In function `char ** do_completion(char *, int, int)':
>ftp.cc:916: ANSI C++ prohibits conversion from `(char *, int)' to `(...)'
>ftp.cc:937: ANSI C++ prohibits conversion from `(char *, int)' to `(...)'

My fault for not testing it before suggesting you install
libreadline4-dev. :)

I can get it to compile by inserting the cast '(CPFunction *)'
immediately before 'command_generator' in line 916 and immediately
before 'filename_generator' in line 937 (so I end up with
'matches = completion_matches(text, (CPFunction *)command_generator);',
etc.).

I can't swear that all this is actually going to work; the suggestions
I've made are the correct ways to get the code to compile, as far as I
know, but they may mask other problems. If it doesn't *run*, the author
is probably the best person to hassle. :)

>Maybe there's something wrong with my development equipment?

No, your development environment seems to be behaving exactly the same
way as mine, and I'm pretty sure mine works.

Cheers,

-- 
Colin Watson                                     [EMAIL PROTECTED]

Reply via email to