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

C compiler interaction in Developer's Studio

arizona78
Beginner
644 Views
Have recently begun development of a DOS legacy FORTRAN & C system using Visual FORTRAN in conjunction with Microsoft Visual Studio .NET.

When I try to compile the C portion in Developer Studio of CVF, it uses the existing WATCOM C/C++ compiler to attempt to compile instead of the Microsoft Visual C compiler.

I've tried locating, in the documentation, where you specify the C compiler to be used, but am either blind or haven't come across it.

Appreciate any help...
Thanks
0 Kudos
2 Replies
Steven_L_Intel1
Employee
644 Views
The Visual Studio 98 environment CVF uses doesn't know about your Visual Studio.NET installation and can't use it. You'll need to compile the C code in a separate project in VS.NET and link it with your Fortran code using the VS.NET linker.

There is no place you specify the C compiler to be used - this is part of the C compiler installation - but I'm guessing that it's somehow finding a cl.exe in one of the directories listed at Tools..Options..Directories..Executable files.

Steve

Steve
0 Kudos
arizona78
Beginner
644 Views
Thanks, you hit the nail on the head with that one.

I'm wondering if I go back and install VS 6.0 Visual C, if it will find that compiler. I only have Source Safe installed from VS 6.0.

Thanks again...
0 Kudos
Reply