[Bug fortran/33942] FreeBSD gfortran interprets an external function as a library function?

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Oct 29 19:29:00 GMT 2007



------- Comment #1 from burnus at gcc dot gnu dot org  2007-10-29 19:29 -------
gfortran 4.3.0 supports now the GAMMA intrinsic function. Thus

PROGRAM pgamma
  y = gamma(x)
END PROGRAM pgamma

calls the intrinsic gamma function (the so-called true-gamma function
"tgamma"), which is for some reason not supported on your system. (Thus you do
not have a C99 compatible C library.)

For your program, you should use
  EXTERNAL GAMMMA
to use your gamma function.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33942



More information about the Gcc-bugs mailing list