Jump to content


Member Since 27 May 2020
Offline Last Active Sep 15 2020 02:11 PM

Topics I've Started

Issues with C++ API

13 September 2020 - 11:07 PM

I'm having two separate issues with the downloaded C++ libraries.

The first is that I'm attempting to use the p4api from Go.  Normally this wouldn't be a big issue since Go can call C/C++ via cgo.  However, on Windows, cgo requires the mingw toolchain, and for various arcane reasons, we're using mingw-w64, which doesn't seem to like the library downloaded from https://www.perforce...gwx86/p4api.zip (the link for 20.1 was a 404).  All symbols fail to resolve.  Is it possible to get a version of this library that works with mingw-w64?

The other issue doesn't involve Go at all, pure C++ on Windows.  Unfortunately, some of the other libraries we want to incorporate are linked with /MD where the msvc libp4api.lib appears to be linked with /MT, causing a linker failure.  Is there a /MD version of the library available?


What breaks if there's no shelvedel trigger?

27 May 2020 - 03:17 PM

We installed triggers according to the instructions at https://www.perforce...p.perforce.html, however the shelvedel trigger was causing problems for a large CL -- the files in the CL are expanded as %argsQuoted% and exceeded the maximum size of a commandline argument.  For the time being we've removed this trigger, and we're wondering how removal will impact the operation of Swarm.  What functionality will be impaired with this trigger missing?