Undefined reference to certain gmsh functions
Hi, thanks for the API. I have been trying to set GMSH to work with C++ but have been unlucky up to now. I was able to fix a few things, but now I get some errors.
When I execute this command
g++ simple.cpp -Llib -lgmsh
I get the following undefined reference errors
/tmp/ccM7fghQ.o: In function main': simple.cpp:(.text+0x77): undefined reference to gmsh::model::add(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' simple.cpp:(.text+0x2dd): undefined reference to gmsh::write(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
which is weird because the linker is working. If I do ld -lgmsh
I only get this warning
ld: warning: cannot find entry symbol _start; not setting start address
I'm currently using a fresh installation of Ubuntu 17.10, and I am using SDK files from the gmsh.info/bin/ site, specifically the gmsh-git-Linux64-sdk.tgz one.
Any idea why only specific functions cannot be linked?