### 3.3.2. Linking a Customized Mesh and Results Export Executable on a Linux Platform

On most Linux systems you should be able to build the executable with the command:

    gcc export.c -o export.exe -I<CFXROOT>/include/ -L<CFXROOT>/lib/<OSDIR> -lmeshexport -lratlas_api -lratlas -lpgtapi -lcclapilt -lunits -lio -lm -lc

where `<CFXROOT>` is the directory in which CFX is installed and `<`OSDIR`>` is a directory name corresponding to the architecture of the machine.

In this example, your own export program is named export.c and the executable file will be called export.exe. You should ensure that the libraries to which you are linking (which are in the path given after `-L`) appear on the command line after the source file (or object file if you are just linking to an existing object).

The compiler flags and required libraries may vary, depending on the compiler and the custom program.

The supported compilers are listed in Compiler Requirements for All Linux Versions in the Installation and Licensing Documentation.

Release 18.2 - © ANSYS, Inc. All rights reserved.