[p4ruby] How to bump the API version?

Tony Smith tony at smee.org
Fri Nov 3 11:53:13 PST 2006


Hi,
>
> some further research revealed that I had to set the p4.api property
> to something other than the default. So I put it at the highest I
> could find, 58, and as by magic, my problems went away. The weren't
> really tied to the tickets after all, but the password checking in
> p4api, as we use tickets to log in.
Hmm... that might indicate a bug; you shouldn't have had to do that so
I'll look into it.
>
> Oh, btw, to be able to build on my machine, using Visual Studio 2005,
> I had to make the following change:
>
> ==== //Combination/P4Ruby/MAIN/p4conf.rb#2 (text) ====
>
> 140c140
> <     $CFLAGS += "-Dconst_char='const char'"
> ---
> >     $CFLAGS += '-Dconst_char="const char"'
> 273c273
> <       ch.puts( define( "P4CFLAGS",            $CFLAGS ) )
> ---
> >       ch.puts( define( "P4CFLAGS",            $CFLAGS.gsub('"', '\"') ) )
>
> The first one would make compiler stop complaining about the single
> quotes, and the other would repair the broken define resulting from
> the change of quotes.

Thanks. I'll sort that out on Monday.

Tony



More information about the p4ruby mailing list