bengsig@oracle.nl (Bjorn Engsig) (11/13/90)
Hours of debugging and eventually looking in info, showed me that both xlf and xlc on AIX 3.1 9035 have a getenv routine. They are of course not compatible, and the net result is that a fortran main program shouldn't call a C subroutine that eventually call the (suposedly C-) getenv routine. I guess the reverse is just as bad. Are there any other cases like this? Does somebody have a workaround before I find one myself? -- Bjorn Engsig, E-mail: bengsig@oracle.com, bengsig@oracle.nl ORACLE Corporation Path: uunet!orcenl!bengsig "Stepping in others footsteps, doesn't bring you ahead"
bengsig@oracle.nl (Bjorn Engsig) (11/13/90)
In article <1114@nlsun1.oracle.nl> I wrote that having xlf programs calling
xlc routins that call getenv() would get the wrong getenv(). A workaround
is to add -lc to the xlf linking phase, but is that guaranteed to work, or
to put it another way, am I certain not to get C versions of other routines
where the fortran version should have been used?
--
Bjorn Engsig, E-mail: bengsig@oracle.com, bengsig@oracle.nl
ORACLE Corporation Path: uunet!orcenl!bengsig
"Stepping in others footsteps, doesn't bring you ahead"