Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Forcing subroutine usage

clunk
Beginner
516 Views

I don't now if I inadvertently changed a setting or if VS 2005 changed something with an update, but what used to work is now broken. I have a relatively large solution that uses a combination of my code and supplied libraries (called out in the top-level project of the solution). In some cases, I have subroutines in my code that I would like to have supercede an identically named subroutine in the supplied libraries. Previously, if I ensured that the build order accessed my version of the subroutine prior to the top-level project, then my code would be used. Right now, I can't get the program to use anything but what is in the supplied libraries (thus ignoring my code). Any ideas or suggestions on how to make VS 2005 and Intel Fortran (10.1) cooperate with my desires???

0 Kudos
1 Solution
Steven_L_Intel1
Employee
516 Views

If you turn on the Linker option Show Progress Messages (/verbose), it will tell you the order in which it looked at objects and libraries and the symbols found from each. This may give you a clue.

View solution in original post

0 Kudos
3 Replies
Steven_L_Intel1
Employee
517 Views

If you turn on the Linker option Show Progress Messages (/verbose), it will tell you the order in which it looked at objects and libraries and the symbols found from each. This may give you a clue.

0 Kudos
clunk
Beginner
516 Views

If you turn on the Linker option Show Progress Messages (/verbose), it will tell you the order in which it looked at objects and libraries and the symbols found from each. This may give you a clue.

Thanks Steve. I had been down the verbose road before, but this time I noticed that the subroutine in question had to be invoked somewhere before it's made available in order to have the Linker findmy desired version.

0 Kudos
Steven_L_Intel1
Employee
516 Views

You may want to look at the Linker "Force symbol reference" property, then.

0 Kudos
Reply