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

C main program to link library in fortran: can't find C compiler in VS2008

Mike896
Beginner
631 Views
Hi,

I have installed Visual Studio 2010 and 2008.
But since my IVF compiler doesn't suit for VS2010, I usually use VS2008. I have already created a library including many subroutines & functions in fortran using VS2008.
Now I'd like to create a project to use a C program to link that library in fortran.
I use VS2008 to create a project, add the C program but I think there is no C compiler in VS2008, since it's all black shown in VS2008. Also, I don't see C compiler as VS2010 shows, when I click Help->About Microsoft Visual Studio.
Questions are:
1/ Can I use VS2010 to create that project with C the main program? My IVF is w_cprof_p_11.1.072.
2/ If using VS2008, how to compile that C program?
Thanks a lot

Mike
0 Kudos
1 Reply
TimP
Honored Contributor III
631 Views
You must install the corresponding Microsoft C++ compiler in VS2008 in order to integrate ifort into VS2008.  That C++ compiler supports C89.
The only thing I can see to support your comments is that you may not have selected the C++ compiler option for VS2008.  Unlike VS2010, the X64 C++ in VS2008 is another option inside the C++ (32-bit) option.  You would repeat your ifort installation in order to integrate into VS2008 after you add the necessary C++ option(s).
You should stick to VS2008 until you are prepared to upgrade to an ifort which supports VS2010.
0 Kudos
Reply