Linking a fortran module with Yade (CMakeLists.txt)
Hello,
I am trying to link a fortran module which is called by a C++ code inside Yade and I am not sure how to compile it properly with CMake (looks like CMake doesn't compile the fortran source)
I modified the trunk/CMakeList
project(Yade C CXX Fortran)
set(CMAKE_
set(CMAKE_
set(CMAKE_
....
FIND_PACKAGE(MPI)
I put the fortran source in the trunk/py folder along with the C++ functions (implemented in _utils.hpp and_utils.cpp) and compilation proceeds without any errors. However when I start yade I get an undefined symbol error which looks this :
undefined symbol: __coupler_MOD_hello (coupler fortran module name, and hello name of function in fortran)
This is because the fortran module has not been linked during compilation. My question is how can I link fortran sources for compilation.
Thanks and Regards,
Deepak
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Bruno Chareyre
- Solved:
- Last query:
- Last reply: