How to link the C++ dylib with a C program

Our application is written in C, running on macOS and i’m wondering how could we link the PDFTron libPDFNetC.dylib with our app ?

Thks for your reply/help

PhC

Please do the following.

  1. Download and unzip this SDK: https://www.pdftron.com/documentation/mac/download/mac/#objectivec-c-c++-c#-net-core
  2. Update your C project to have the Include directory “PDFNetCMac/Include”
  3. Update your C project to copy “PDFNetCMac/Lib/libPDFNetC.dylib” to your output binary folder

For coding you would use the files in the PDFNetCMac/Headers/C folder. For code examples start with C++ samples, and then looking at the C++ headers you can see what the actual C API are that are actually being used (sorry we do not have any C samples).