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

Compiling C Code with Intel Fortran Compiler

Randy_Clark
Beginner
1,402 Views
I am a graduate student who has bee using the Intel Visual Fortran Compiler for my research for the last three years. Up until now, all of my coding has been done in Fortran, but now to take my research to the next level, I have to work a program that has been written in both C and Fortran. While the manual that comes with the Fortran compiler suggests this should be possible, using the command "icc". When I try to compile the C code with this command, I get the message, "'icc' is not recognized as an internal or external command, operable program or batch file." Am I doing something wrong? Has the C Compiler been omitted from my version of the fortran compiler? Are there a set of instructions that would provide a better description of how I am supposed to go about compiling C with the Fortran compiler?
0 Kudos
5 Replies
Anonymous66
Valued Contributor I
1,402 Views
Hi Randy,
The Intel C++ compilerdoes not come with Intel Visual Fortran Composer XE. If you want to use the C compiler, you can purchase it separately or as part of a product suite.
Regards,
Annalee
Intel Developer Support
0 Kudos
Randy_Clark
Beginner
1,402 Views
I have Intel Visual Fortran Compiler Professional Edition 11.1.048. Is that the same as the Composer XE? The help resources seem to inidcate that the C compiler should be included with the Fortran compiler. But I could be wrong.
0 Kudos
Anonymous66
Valued Contributor I
1,402 Views
What help resources are you refering to?

Intel Visual Fortran Compiler Professional Edition is an earlier version of Composer XE. The Intel C++ compiler does not come with it either. What help resources are you refering you? If you want to use both, you can purchase them together in IntelComposer XEor purchase it separately.
0 Kudos
TimP
Honored Contributor III
1,402 Views
As you must have the Microsoft CL compiler installed before installing ifort Windows (or use the VS shell, which doesn't support C or C++), that compiler is often used as the companion C compiler for ifort, when you don't need auto-vectorization on the C side.
In some cases, when using the VS shell 32-bit installation, you might be able to make a C .obj separately with VS Express and link it in with ifort.
Microsoft has posted claims that the optimization limits will be raised for VS11, but my MSDN account is blocked.
0 Kudos
anthonyrichards
New Contributor III
1,402 Views
The Microsoft visual C++, Visual C# and Visual Basic, Visual J# etc. all come with my version of Visual Studio 2005, and almost certainly come with any of the later Visual Studio versions, one of which is required to install and integrate the Intel composer/compiler into the visual environment.
0 Kudos
Reply