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_
Principiante
998 Vistas

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 Respuestas
mecej4
Colaborador Distinguido III
998 Vistas

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.

Patrick_G_
Principiante
998 Vistas

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

Ashraf_H_
Principiante
998 Vistas

Thanks a lot Patrick G. and mecej4! 

 

 

Responder