Call SUBROUTINE GET_ME(P, ALPHAS, NHEL ,ANS) in C++
Dear experts,
I generate fortran code to calculate matrix elements via "output standalone ..." and I know how to create a python library and to call the get_me function in python (https:/
I found out, that I can compile the fortran code into a library matrix.o with "make check". If I compile a test (hello world) script using "g++ -L../../lib/ -ldhelas -lmodel -lgfortran matrix.o test.cc", I get some undefined reference errors.
matrix.o: In function `matrix_':
matrix.
matrix.
matrix.
matrix.
matrix.o: In function `get_me_':
matrix.
matrix.o: In function `initialise_':
matrix.
collect2: error: ld returned 1 exit status
Any help is welcome. Thanks in advance.
The second question would be then how to distinguish multiple subprocess directories, that all contain the same function with the same name (GET_ME), but maybe I will figure out a way to do it...
Best regards,
Thomas
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Thomas Müller for more information if necessary.