Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong compiler for fotran_example.F90 #226

Open
SpinTensor opened this issue Oct 28, 2021 · 2 comments
Open

Wrong compiler for fotran_example.F90 #226

SpinTensor opened this issue Oct 28, 2021 · 2 comments

Comments

@SpinTensor
Copy link

the fortran_example.F90 in the fortran folder has the wrong compiler in the Makefile.in

fortran_example: fortran_example.o libint_f.o
        $(LTLINK) $(CXX) $(CXXFLAGS) $(LDFLAGS) $(COMPUTE_LIB) $(SYSLIBS) $(FCLIBS) -o $@ $^

Some compilers cannot use the c++ compiler for this. One manually needs to change it every time.

@evaleev
Copy link
Owner

evaleev commented Jan 13, 2022

@SpinTensor thanks for reporting this ... is the issue that $(FCLIBS) incomplete or that the fortran and c++ compilers are configured to use different linkers? There is no good reason why a C++ compiler would not be able to link in fortran runtime libs (FCLIBS is defined for this purpose ... perhaps its computation is broken).

@SpinTensor
Copy link
Author

Not every compiler suite works like this. In some the fortran compiler is the most universal one and is used to link c++ code with the appropriate flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants