[ACCEPTED]-Linking Fortran and C++ binaries using gcc-fortran
Accepted answer
You're looking for
g++ main.o print_hi.o -o main -lgfortran
to link in the standard 2 Fortran libraries.
You can also use gfortran
by passing 1 -lstdc++
.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.