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

severe (151) error when using libguide40.dll for the first time

mostlyAtNight
Beginner
680 Views
Hello all,

I am experimenting with openMP for the first time.

I have put some compiler directives around a small loop in a DLL I am working on and have attempted to get the compiler to generate parallel code by:

enabling the following compiler flags: /fpp /Qopenmp /Qopenmp-report
enabling the following linker flags: /LIBPATH:"C:Program FilesIntelCompilerFortran10.1.021IA32Lib" /MDd "libguide40.lib"

When I run the app, it asks for libguide40.dll so I have copied it into the same directory for the time being.

When the app gets going I revieve the following error:

forrtl: severe (151): allocatable array is already allocated

The call stack in VS looks like this:

libifcoremdd.dll!185a4f4c()
[Frames below may be incorrect and/or missing, no symbols loaded for libifcoremdd.dll]
ntdll.dll!7c96e0d4()
bla bla bla()

Could this be something to do with other DLLs the app is using being compiled with incompatible versions of libifcoremdd?

Any help would be greatly appreciated.

Kind regards,
Pete

0 Kudos
1 Reply
Steven_L_Intel1
Employee
680 Views
You should have the path to the compiler LIB folder added to PATH rather than copying that one DLL. I don't see any evidence of "incompatible versions of libifcoremdd".

It is possible that you have data corruption or incorrect synchronization between threads. You'd need to debug this program in order to determine the issue, or consider trying Intel Thread Checker.
0 Kudos
Reply