Forum Jump

Select Group :
Select Forum :
Sorted By :
Sort Order :
From The :
 
Thread Tools  Search this thread 
prakashvri-custom.org
Total Points:
75
Status Points:
25
Green Belt
July 2, 2009 11:44 AM PDT
Creating Obj file in Intel
|| 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(R) Visual Fortran Compiler Integration Package ID: w_cprof_p_11.0.074
Intel(R) 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
Steve Lionel (Intel)
Total Points:
114,435
Status Points:
114,435
Black Belt
July 2, 2009 12:04 PM PDT
Rate
 
|Best Answer
#1
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.



prakashvri-custom.org
Total Points:
75
Status Points:
25
Green Belt
July 2, 2009 2:36 PM PDT
Rate
 
#2 Reply to #1
|| Sarvam Krishna Arpanam ||

Hi

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

Regards
Prakash


prakashvri-custom.org
Total Points:
75
Status Points:
25
Green Belt
July 4, 2009 1:15 AM PDT
Rate
 
#3 Reply to #1
|| 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


Steve Lionel (Intel)
Total Points:
114,435
Status Points:
114,435
Black Belt
July 4, 2009 6:12 AM PDT
Rate
 
#4 Reply to #3
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?



prakashvri-custom.org
Total Points:
75
Status Points:
25
Green Belt
July 4, 2009 8:45 PM PDT
Rate
 
#5 Reply to #4
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.


Steve Lionel (Intel)
Total Points:
114,435
Status Points:
114,435
Black Belt
July 5, 2009 6:14 AM PDT
Rate
 
#6 Reply to #5
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.





Intel Software Network Forums Statistics

8436 users have contributed to 31538 threads and 100346 posts to date.
In the past 24 hours, we have 18 new thread(s) 88 new posts(s), and 110 new user(s).

In the past 3 days, the most popular thread for everyone has been Strange results from operator overloading The most posts were made to IVF 11.1.051 freezes during build The post with the most views is Can you show us a test case?

Please welcome our newest member Andreas Muesing