The C/C++ Interface makes it possible to integrate AH Formatter V7.0 into C/C++ programs.
CAUTION: | 32-bit Windows version can be installed on Windows x64 Edition. In that case, compile it for Win32 platform when you use C/C++ interface. |
---|
The following header files are included in [Install directory]/include.
Header file | Contents | Location |
---|---|---|
xfoifc.h | Header for C++ | [Install directory]/include |
xfoifc_c.h | Header for C |
The following library files are included in [Install directory]/lib or [Install directory]/lib.
Library file | Contents | Location |
---|---|---|
C/C++ Interface Library for Windows | [Install directory] | |
libXfoInterface.so | C/C++ Interface Library for Linux | [Install directory]/lib |
libXfoInterface.dylib | C/C++ Interface Library for Macintosh | [Install directory]/lib |
In the Windows version the following library file for link is included in [Install directory]/lib.
Library file | Contents | Location |
---|---|---|
XfoInterface.lib | Library for DLL linking | [Install directory]/lib |
AH Formatter V7.0 Windows version is built using Microsoft Visual C++ 2015. MFC is not used without GUI. Use a compatible compiler for your program.
AH Formatter V7.0 Linux 64-bit version is built using GCC 4.8. Your program must be compiled using GCC 4.8 or later. For more detailed information about GCC, see “GCC, the GNU Compiler Collection”.
AH Formatter V7.0 Macintosh version is built using Xcode9.0 Apple LLVM version 9.0 (clang-900.0.37).
[Install directory]/samples/cpp and [Install directory]/samples/c includes some simple sample programs.
In order to build a sample with the command line of Visual C++ in the Windows environment, execute the compiler from the console as follows:
To build the executables for Windows, use the command prompt from [Start]-[Microsoft Visual Studio 2015]-[Visual Studio Tools].
[Install directory]/lib must be appended to the PATH environment variable in order to execute this program. The sample executes as follows:
The following command-line shows how to build the sample in the Linux environment using GCC.
In order to execute the built sample program, a setup of other environment variables is necessary. For more details, see Environment Variables.
As mentioned previous, the GCC version is very important. Check your GCC version using the --version command-line option.
In order to build a sample in the Macintosh 64-bit environment, execute the compiler from the terminal as follows:
To execute the built sample program, a setup of other environment variables is also necessary. For more details, see Environment Variables.