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

Problem running a static library

Ashraf_H_
Beginner
696 Views

Hello,

I have an Intel Fortran project that works fine and produces the expected results. But, once I create a static library and test it in another project, I get an access violation problem. I will appreciate it if someone give me a hint on what could be a possible source of this?.

0 Kudos
3 Replies
mecej4
Honored Contributor III
696 Views

The possibilities are too numerous to list here. It comes down to this: you have two different programs that share N lines of source code, and the remaining N1 - x and N2 - x are different. These differences can be of various types and origins -- different input data, different/wrong subroutine arguments, different compiler options, etc. 

I suggest that you focus on the program that is important to you, and work on removing the errors in it. You can begin by reporting on the details of the failure. Turn on error traceback, checking for subscript violations, etc.

0 Kudos
Patrick_G_
Beginner
696 Views

Quick and simple thing to check: do not mix 32-bit and 64-bit stuff.

0 Kudos
Ashraf_H_
Beginner
696 Views

Thanks a lot Patrick G. and mecej4! 

 

 

0 Kudos
Reply