I am writng in relation to a problem I have, when trying to compile a c++ source with a makefile.
The code has only one peculiarity that it contains a FORTRAN subroutine. This is not an issue because I can link and compile it without problems when I use the command line. I first create an object from the FORTRAN subroutine and then can link it without any problems. However if I try to do the same with my make file, I gate an linking error. My guess is that I have something wrong in the make file.
The first thing I did is to use the –MM option of g++ to generate the dependencies, for compiling i use intel compilers:
The problem comes in my opinion on the linking stage. Concerning the loose statement ‘Everything crashes’ – well I get more than 250 lines of error messages. The problem is that this project will grow in its files numbers, and I would like to learn what am I doing wrong?