Also ensure that there is an extra blank line at the end of the Makefile. Make absolutely certain you prefix each command line (the gcc, g77, or similar lines) with a TAB character, not spaces. In this case, C, C++, and FORTRAN source code is compiled into object files. SUFFIXES: line gives a list of file extensions that will be used in the final compilation. OBJECTS=fprogram.o ffunction.o cppfunction2.o cfunction2.o ![]() The following lines are entered into a normal Example Makefile to Build Mixed FORTRAN, C, and C++ program
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |