C/C++ Interface
The C/C++ Interface makes it possible to integrate Antenna House Formatter V7.4 into C/C++ programs.
CAUTION: | Windows x86 version can be installed on Windows (64-bit version). In that case, compile it for Win32 platform when you use C/C++ interface. |
---|
Header Files
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 |
Library Files
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 Windows versions, 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 |
Compiler Issues
Windows
Antenna House Formatter V7.4 Windows versions are built using Microsoft Visual C++ 2015. MFC is not used without GUI. Use a compatible compiler for your program.
Linux
Antenna House Formatter V7.4 Linux version (64-bit version) is built using GCC 4.8. Your program must be compiled using GCC 4.8 or later. Amazon Linux 2 Graviton2 version is built using GCC 7.3. Your program must be compiled using GCC 7.3 or later. For more details about GCC, see “GCC, the GNU Compiler Collection”.
Macintosh
Antenna House Formatter V7.4 Macintosh version (64-bit version) is built using Xcode9.0 Apple LLVM version 9.0 (clang-900.0.37). Macintosh M1 version is built using Xcode12.4 LLVM 10.0.0 Apple clang version 12.0.0 (clang-1200.0.32.29).
Building the Sample Programs
You can download simple sample programs from our website.
Windows
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:
The current directory of the following samples is the directory containing the cpp directory where the sample is unzipped.
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:
Linux
The following command-line shows how to build the sample in the Linux environment using GCC.
The current directory of the following samples is the directory containing the cpp directory where the sample is unzipped.
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.
Macintosh
In order to build a sample in the Macintosh environment, execute the compiler from the terminal as follows:
The current directory of the following samples is the directory containing the cpp directory where the sample is unzipped.
To execute the built sample program, a setup of other environment variables is also necessary. For more details, see Environment Variables.