Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CRAY-style vector functions in AltiVec?



Perhaps the problem was more specific: I saw the trick of naming a subroutine in fortran with a given name, and naming the same same subroutine in C with the same name with an underscore suffix. The link failure occurred when the fortran subroutine had an underscore within the name. Hence, in Ian Ollman's example from the Apple DC pages, the following names did not work:

fortran:
call start_clock()
C:
start_clock_( void )

but these names DID work:

fortran:
call startclock
C:
startclock_( void )

Cheers,
Marc

On Saturday, June 5, 2004, at 08:05 AM, Ted Mansell wrote:

One thing about g77 is that its default behavior is to add 2 underscores at the end of a subroutine name when the name contains an underscore (instead of the normal 1 trailing underscore). It can be forced to do only one with -fno-second-underscore. This may the source of your linking problems.

-- Ted
_______________________________________________
fortran-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/fortran-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.