<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Dear gmsh users,</p>
<p>I would like to use the C++ API of the Linux SDK (compiled with
GCC 4) in a program that I must compile with gcc-5.5.0.</p>
<p>Specifying "-D_GLIBCXX_USE_CXX11_ABI=0" is not an option, as the
program also uses several other libraries compiled with GCC 5 or
higher.</p>
<p>According to the `README.txt' in the SDK, another approach is to
rename `gmsh.h_cwrap' as `gmsh.h' in order to redefine the C++ API
in terms of the C API. If I do just that, the linker complains
about several "multiple-definition" errors, which come from the
fact that the functions in the `gmsh.h_cwrap' header are not <i>inline</i>d.</p>
<p>My temporary solution was to manually inline the 4 utility
functions and to "#define GMSH_API inline" for the rest of the API
functions. This does the trick, but I am pretty sure the gmsh
developers though of a cleaner solution. What is the proper way to
use this `gmsh.h_cwrap' header?</p>
<p>Thank you in advance for any advice, and many thanks and
congratulations to the gmsh team for the amazing work!</p>
<p>Cheers,</p>
<p>Julien<br>
</p>
</body>
</html>