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

Creating Obj file in Intel

Prakash_K_
Beginner
1,647 Views
|| Sarvam Krishna Arpanam ||

Hi

I am a new fortran user and need some help in migrating a code from Compaq to Intel compiler. I have read through this page

http://software.intel.com/en-us/articles/migrating-from-compaq-visual-fortran/

but have not had any success. I would appreciate if someone can help me.

I have a source code built in Compaq. In compaq, I am able to open it and compile at the click of a couple of buttons and able to create an object file. I am able to open the same code file in Visual Studio 2005 but not sure how to compile the file to create an object file. The following is available on my machine

Microsoft Visual Studio 2005
Version 8.0.50727.867 (vsvista.050727-8600)
Microsoft .NET Framework
Version 2.0.50727 SP2

Installed Edition: IDE Standard

Intel Visual Fortran Compiler Integration Package ID: w_cprof_p_11.0.074
Intel Visual Fortran Compiler Integration for Microsoft Visual Studio* 2005, 11.0.3454.2005, Copyright (C) 2002-2009 Intel Corporation
* Other names and brands may be claimed as the property of others.

Microsoft Visual Studio 2005 Premier Partner Edition - ENU Service Pack 1 (KB926601)
This service pack is for Microsoft Visual Studio 2005 Premier Partner Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/926601

Update for Microsoft Visual Studio 2005 Premier Partner Edition - ENU (KB932232)
This Update is for Microsoft Visual Studio 2005 Premier Partner Edition - ENU.
If you later install a more recent service pack, this Update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/932232

Any help will be greatly appreciated.

Thanks & Regards,
Prakash
0 Kudos
1 Solution
Steven_L_Intel1
Employee
1,647 Views
Do you specifically want an object file only or do you want to build the application? Usually it's the latter.

In the toolbar, select Build and then Build Solution. If all you want is to compile a source file to an object, right click on the source file name in the "Solution Explorer" pane and select Compile. This won't get you something you can run.

View solution in original post

0 Kudos
6 Replies
Steven_L_Intel1
Employee
1,648 Views
Do you specifically want an object file only or do you want to build the application? Usually it's the latter.

In the toolbar, select Build and then Build Solution. If all you want is to compile a source file to an object, right click on the source file name in the "Solution Explorer" pane and select Compile. This won't get you something you can run.
0 Kudos
Prakash_K_
Beginner
1,647 Views
|| Sarvam Krishna Arpanam ||

Hi

Thank you very much for the help. I was able to create the object files.

Regards
Prakash
0 Kudos
Prakash_K_
Beginner
1,647 Views
|| Sarvam Krishna Arpanam ||

Hi

Compaq was able to create an object file even when there were some errors while compilation. But it does not seem like to be so in Intel. Is there some option that needs to be modified to enable Intel create a object file even in the presence of some errors?

Thanks for the time and efforts !!

Regards
Prakash
0 Kudos
Steven_L_Intel1
Employee
1,647 Views
No. If you have error-level diagnostics, you get no object. If it created an object, that would make the build system think that recompiling was not necessary. As far as I know, CVF worked the same way.

What would you do with an object from a failed compile?
0 Kudos
Prakash_K_
Beginner
1,647 Views
No. If you have error-level diagnostics, you get no object. If it created an object, that would make the build system think that recompiling was not necessary. As far as I know, CVF worked the same way.

What would you do with an object from a failed compile?


What would you do with an object from a failed compile?

:)

The object file is to be used to read the fortran code on a different simulation software. The errors that we get are not critical and not encountered if we run the file from the other simulation software.
0 Kudos
Steven_L_Intel1
Employee
1,647 Views
If the compiler reports an error-level diagnostic, it IS critical in that compilation cannot succeed - the compiler cannot determine what the correct interpretation of your program is. I know some compilers, Intel C++ for example, have the concept of "soft errors", but Intel (and Compaq) Fortran does not.
0 Kudos
Reply