How to override a subroutine in a static library?

How to override a subroutine in a static library?

Ahmed A.'s picture

Could I use  the inlining function to get the user override a subroutine   defined in a static library with anther one he has. In other words I have a subroutine that is defined in the static library and a user subroutine and I would like to use the one in the user subroutines not the one in the library , when I did the linking(/force) the project recognize the existence of the two definations of the subroutine and gave me a warrning that he will ignor the one defined in the library but due to the auomatic inlining intel fortran has the project use the one in the library not the one in the user subroutines.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Steve Lionel (Intel)'s picture

You can't depend on this. In the example you showed us in your other thread, the caller of the library routine was in the library - so inlining there won't help you. I recommended what will work in your other thread. You're not going to find any automatic solution to this.

Steve

Login to leave a comment.