Skip to main content

CFF SDK Content

The CFF developer package contains:
In the header files, the main include/ directory should be added to the build path
… The object libraries for Windows.
Link against the static .lib files during the build process.
Ensure the .dll files can be found by your applications at runtime by setting your %Path% variable correctly.
… The object libraries for Linux.
The libraries must be provided during the build process.
Ensure the .so files can by found by your applications at runtime by setting your LD_LIBRARY_PATH variable correctly.
… Source files, for example executables that show how to read and write CFF grid and solution files.
… Source files for example executable that show how to read and write CFF project files.

Compiling and Linking on Windows

Requirements
  • Microsoft Visual Studio 2019 or newer (64-bit build environment)
To build an application using the CFF SDK, it is required to
  • Add the include folder to the include folder list for the C++ preprocesssor
  • Use the provided .lib files found in the lib folder when linking your application to the API
You will likely want to link all libraries in the folder except libansysfluidsprojectqt.lib. This library requires Qt libraries. Delete or move this file to a different location to use the *.lib wildcard.
libansysfluidsproject.lib is only required when using the Project API.
For example, to build one of the provided demonstration files, from a 64-bit build environment:
To run the examples, the lib/win64/ .dll files must be either in the current directory, or in the windows Path%
A wrapper script is also provided to ease the library path setup:

Compiling and Linking on Linux

Requirements
  • g++ 8.2 or compatible
  • RedHat/Centos 7.4 , newer or compatible
To build an application using the CFF API, it is required to
  • Add the include folder in the include folder list for the C++ preprocesssor
  • Build the source files using the CFF API without the C++11 binary interface, that is, use the switch -D_GLIBCXX_USE_CXX11_ABI=0
  • Use the provided .so files found in the lib directory when linking your application to the API.
Link with all libraries in the folder except libansysfluidsprojectqt.so. This library requires Qt libraries. To use the *.so wildcard, erase or move the file. libansysfluidsproject.so is only required for the Project API.
For example, to build one of the provided demonstration files:
To run the examples, the linx64/ .so files should typically be in the LIBRARY_PATH
A wrapper script is also provided to ease the library path setup: