Hi all,
I have a "rect2.msh" file with me. I am trying to load it using
mesh mymesh("gmsh:rect2.msh");
but it is giving me this error. " Error in 'gmshinterface' namespace: GMSH API is not available"
When I tried this method,
...
#include "gmsh.h"
...
gmsh:: initialize ();
gmsh::open("rect2.msh");
mesh mymesh("gmsh:api");
gmsh:: finalize ();
I downloaded gmsh.h file from the internet and saved in the headers folder. But it is giving me this error.
/tmp/ccMCHSju.o: In function `main':
main.cpp:(.text.startup+0x36): undefined reference to `gmsh::initialize(int, char**, bool)'
main.cpp:(.text.startup+0x4d): undefined reference to `gmsh::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
main.cpp:(.text.startup+0x9f): undefined reference to `gmsh::finalize()'
collect2: error: ld returned 1 exit status
Please help. Thank you