[p4perl] Fwd: 8 hrs invested, 1 unresolved external symbol to go...

Dan Lindy dan.lindy at gmail.com
Wed Jul 25 05:41:57 PDT 2007

Hi Tony,

Thanks for the follow-up. I was actually unaware that the Windows installer
included a pre-built version of the binary. I was under the impression, from
the documentation, that the binary had to be built locally. Now that I look
at the page again it seems obvious, but it wasn't when I was reading through
your instructions as there is no mention of using the bre-built binary in
step #2.

Because of the plethora of version compatibility issues, I am uneasy at this
point about using an API which may break during a future upgrade, so I am
electing to go with basic scripting (using system calls to p4 commands).
This is less than ideal, as I am interested in listening to audit events,
but seems a simpler and more stable approach, at least for now.

If I had lots of time on my hands to get the API working and play around
with it, I'd likely go that route. For now, I'm out of time and need to move

Thanks for your help, though. P4Perl looks like a worthwhile project and I
hope to get a chance to use it in the future.


On 7/25/07, Tony Smith <tony at smee.org> wrote:
> On Tuesday 24 July 2007 17:16, Dan Lindy wrote:
> > I found this:
> >
> > http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=327790&SiteID=1
> >
> > LNK2001s/LNK2019s are usually a result of mixing debug libs with release
> > libs (or libs compiled with another version of Visual Studio). It can
> also
> > be caused by static libraries not using the same runtime library
> (project
> > properties -> c/c++ -> code generation -> runtime library -> should be
> /MDd
> > for debug and /MD for release).
> >
> > Seems it may not be possible to use VS 2005 unless Perforce provide a
> > compatible set of libs.
> OK, I've reproduced this, and I can't get P4Perl to build with ActivePerl
> 5.8.8 and VS 2005 either. Using the Perforce API at:
> http://filehost.perforce.com/perforce/r06.2/bin.ntx86/dyn/p4api.tar
> resolves the build errors, but then you hit runtime loading errors which,
> I
> think, have to do with incompatibilities between the version of Visual
> Studio
> used to compile Perl and the version used for P4Perl. Microsoft's C
> Runtime
> problems basically.
> Do you need to build it yourself Dan, or can you just use the pre-built
> installer? The precompiled installer for the development build is
> compatible
> with ActivePerl 5.8.8 (it's compiled with Visual Studio 2003). If you want
> to
> compile it yourself, I suspect you'll need to use VS 2003.
> Tony
> --------------------------------------------------------------------------------
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If
> you have received this email in error please notify the system manager.
> Please
> note that any views or opinions presented in this email are solely those
> of the
> author and do not necessarily represent those of Perforce Software.
> Finally,
> the recipient should check this email and any attachments for the presence
> of
> viruses. Perforce Software accepts no liability for any damage caused by
> any
> virus transmitted by this email.
> Perforce Software UK Ltd is registered in England and Wales as company no.
> 3816019 at the following address: West Forest Gate, Wellington Road,
> Wokingham,
> RG40 2AQ, UK
> --------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.perforce.com/pipermail/p4perl/attachments/20070725/36f25493/attachment-0001.html>

More information about the p4perl mailing list