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

Building DLLs from the command line

michael_green
Beginner
748 Views

Hi All,

I found it fairly straighforward to build a whole set of DLLs from a command script under IVF10. The main thing was to activate this line:

        call "C:\Program Files\Intel\Compiler\Fortran\10.0.025\IA32\Bin\ifortvars.bat"

which, among other things, defined ifort.

What's the equivalent in IVF Composer 2013 XE? It's obviously completely different - C:\Program Files (x86)\Intel\Composer XE 2013\Bin\ifortvars.bat makes no mention of ifort.

Any help or insights greatly appreciated.

Many thanks

Mike

0 Kudos
4 Replies
Lorri_M_Intel
Employee
748 Views

What happened when you invoked that bat file?  It sets up PATH, LIBRARY and INCLUDE so that the command "ifort" can be found.

            --Lorri

0 Kudos
Martyn_C_Intel
Employee
748 Views

Even simpler is to open a command window from the Start menu that already has the environment set up. Go to

All Programs / Intel Parallel Studio XE 2013 / Command Prompt / Parallel Studio XE with Intel Compiler XE v14.0 / IA-32 Visual Studio 2010 mode

(You might have different Visual Studio and compiler versions, and possibly Composer instead of Parallel Studio).

0 Kudos
michael_green
Beginner
748 Views

Hi Guys,

Thanks for replies.

I would prefer to run the job in a command script, but it won't run. I have distilled the problem down to the fact that when ifortvars.bat exits, it exists everything, including the batch script in which the call to run it was embedded, so I can't do anything else. The following illustrates:

cd "C:\Program Files (x86)\Intel\Composer XE 2013\Bin"
ifortvars.bat ia32
echo Successful completion

I never see "Successful completion". What am I doing wrong?

Many thanks

Mike

0 Kudos
Steven_L_Intel1
Employee
748 Views

Use "call ifortvars.bat ia32". I would also recommend against changing to the compiler folder..instead put the path in the command. Use %ifort_compiler14% to find it. 

0 Kudos
Reply