[Fluent on Linux] version 'GLIBCXX_3.4.29' not found

In the blog you will find a procedure to overcome this error message.

This error is found when working on Linux plattform

A simple C routine was written to be called from a UDF, which then calls a basic Fortran routine, following the example provided in the manual. When it was compiled, an error message came up saying that GLIBCXX_3.4.29 could not be found.

.

First, for linking precompiled files from non-Fluent sources using UDF you should consider the path suggested in this section of the Help manual:

.

.

Fluent may also try to use its own libstdc++, leading to compatibility issues with system libraries (e.g., OpenGL, MPI, Fortran runtime). For Linux, Ansys packages software in two formats that work for most common distributions, which must have at least GLIBCXX_3.4.13.

For RedHat-derived systems (including CentOS and Fedora), see RPM. For Debian-derived systems (including Ubuntu). For users who do not use the DEB or RPM packaging systems, a compressed tar file is also available to download; see TGZ.

.

Causes:

  • The version of libstdc++ on your system is older than the one required by the compiler that built your UDF or your external Fortran C Code.

  • Fluent often ships with its own environment that may not have the latest libstdc++.

  • If your system lacks libstdc++ with version 3.4.29, the binary will not run.

.

Solution:

Now, follow the following steps in Linux,

  • Open a terminal window

  • Before launching Fluent, type (To use the system's libstdc++):

export LD_PRELOAD=/usr/lib64/libstdc++.so.6

  • Then, start Fluent from the same terminal:

fluent

  • Try compiling the UDF again. This must solve the problem.

.

Thank you.

.