Pdftron-go duplicate libraries: '-lPDFNetC', '-lpdftron' warning when building

Product: pdftron-go SDK

Product Version: v2.2.4

Please give a brief summary of your issue:
duplicate libraries: ‘-lPDFNetC’, ‘-lpdftron’ warning when building

Please describe your issue and provide steps to reproduce it:

Getting duplicate libraries: ‘-lPDFNetC’, ‘-lpdftron’ warning on v2.2.4 when building

CGO_ENABLED=1 go build

Issue does not occur with v2.2.3 or v2.2.2

ld: warning: duplicate -rpath '/Users/<user>/go/pkg/mod/github.com/pdftron/pdftron-go/v2@v2.2.4/shared_libs/mac/Lib/arm64/' ignored
ld: warning: duplicate -rpath '/Users/<user>/go/pkg/mod/github.com/pdftron/pdftron-go/v2@v2.2.4/shared_libs/mac/Lib/arm64/' ignored
ld: warning: duplicate -rpath '/Users/<user>/go/pkg/mod/github.com/pdftron/pdftron-go/v2@v2.2.4/shared_libs/mac/Lib/arm64/' ignored
ld: warning: ignoring duplicate libraries: '-lPDFNetC', '-lpdftron'

Please provide a link to a minimal sample where the issue is reproducible:
Running the sample script runall_go.sh https://github.com/PDFTron/pdftron-go/blob/main/samples/runall_go.sh

1 Like

Thank you for posting the incident to our forum. We will provide you with an update as soon as possible.

1 Like

It’s unclear what might be causing this, and no other users have reported.

This appears to be a warning, so you can just ignore.

For PDFNetC you can call PDFNet.GetVersionString() at runtime to get the version actually being used, if you are concerned you are not using the correct version.

1 Like