Hello Jack,

On 22.12.2012 15:20, Jack Riegel wrote:
> I created  a 2-line fortran program and a simple make file (below) to
> illustrate the problem that I am having.  When I run make, I get the
> following output.   Note that if I simply copy and paste the final
> gfortran line (the linking step) into my terminal window, the
> executable builds.  It is as if  make is overriding the normal
> library location.  I have not tried specifying a library location,
> but it does not seem that it should be necessary.

seems to work well over here.  Are you using a version of GCC that does
not come with your GNU/Linux distribution?


# make
gfortran -c makeTest.f90
gfortran makeTest.o -o makeTest.x

# ./makeTest.x
 hello

# which gfortran
/usr/bin/gfortran

# gcc -dumpversion
4.5.4

# make -v | head -n 1
GNU Make 3.82

# uname -m
x86_64


Best,



Sebastian

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make
  • not linking Jack Riegel
    • Re: not linking Sebastian Pipping

Reply via email to