Loading...
Skip to end of metadata
Go to start of metadata

Note: This error is related to Adobe PDF Library version 10.1 only.  Datalogics no longer supports APDFL 10, but we wanted to provide this information to you in case you need it.

To correct this gCoreHFT build error, make sure that your application is pointed to this path:

APDFL10.1.0\APDFL\Samples\utils\common.mak

APDFL version 10 makefiles must all contain this line: 

include ../dlutils/common.mak

And makefiles for each of our sample programs must include the following lines,

PDFLInitCommon.o : $(SOURCE)/PDFLInitCommon.c
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@

PDFLInitHFT.o : $(SOURCE)/PDFLInitHFT.c
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@

These two files, PDFLInitCommon.o and PDFLInitHFT.o, should have functionality that is pulled in by these statements:

#define INCLUDE_MYPDFLIBAPP_CPP 1
#include "MyPDFLibApp.cpp"
#undef INCLUDE_MYPDFLIBAPP_CPP

These statements should appear at the end of the main file(s) for each sample app.

The main() entry point is found in Samples/utils/MyPDFLibApp.cpp.  The MyPDFLIbApp.cpp program initializes the Library for the application with MyPDFLInit() from the program MyPDFLibUtils.cpp, found in Samples/utils.

MyPDFLibUtils.cpp calls two functions in the Include/Source directory, PDFLInitHFT.c and PDFLInitCommon.c. 

The code from Include/Source should be included as written. 

You would customize the code from the programs MyPDFLibApp.cpp and MyPDFLibUtils.cpp as needed for your application.

Note that the sample program Samples/_Common/InitializeLibrary.cpp is a more recent implementation of the MyPDFLib*.* initialization code, originally from Adobe Inc.

  • No labels