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

Trying out VS 2010

dannycat
New Contributor I
1,110 Views
I have just downloaded a trial installation of VS2010 so that I can try it out before going ahead with moving across from VS2008.

I would like to be able to use both VS2008 and VS2010 in parallel for a while using the same sources. What is the best way to do this?

How do I set up VS2010 to incorporate Composer Update 7 without upsetting the VS2008 solution?

I'm sure many people have already done something like this so any advice would be most welcome.

Thanks
0 Kudos
11 Replies
Steven_L_Intel1
Employee
1,110 Views
You will need separate projects if you want to work with the sources from both VS2008 and VS2010, but they can reference the same sources. So I'd suggest making a copy of the VS2008 solution, opening the copy with VS2010, remove the copied sources from the project and add the originals - or just work with the copy.

Is that what you wanted to know? I am a bit uncertain about "without upsetting the VS2008 solution".
0 Kudos
dannycat
New Contributor I
1,110 Views
Steve, the main question is:
What is the correct procedure for getting VS2010 to integrate with FORTRAN Composer XE? Do I have to reinstatll it and if I did would this affect it's operation within VS2008?

I've tried to convert copy of VS2008 solution but only projects with C files have converted successfully. This was done before reinstalling Composer XE
0 Kudos
Steven_L_Intel1
Employee
1,110 Views
You would have to reinstall Fortran if you installed VS2010 after installing Fortran. It will continue to work with VS2008.
0 Kudos
dannycat
New Contributor I
1,110 Views
Thanks Steve, I've now managed to convert the VS2008 solution to VS2010 and I thought all was well until I tried to build when it was having problems with the C projects (unable to locate the XXX_lib.lib files). I then recalled that I had read somewhere, a while ago, that you have to do something different in VS2010 to cater for mixed language solutions (or even that you couldnothave mixed language solutions). Is this the case or did I imagine it?
0 Kudos
Steven_L_Intel1
Employee
1,110 Views
You're not imagining - yes, you have to do something different. See this article for the details.

This information is also in the Fortran release notes, along with the following text that is probably relevant to you:

Adjusting Project Dependencies

If you are converting a project from an earlier version of Visual Studio and had established
Project Dependencies, these are converted to References by Visual Studio 2010. A Fortran
project that is referenced by a C/C++ project will prevent the C/C++ project from building, with
an MSB4075 error. To solve this:

1. Right click on the C/C++ project and select References.
2. If any Fortran project is shown as a reference, click Remove Reference. Repeat this for
all Fortran projects shown as a reference. Click OK.
3. Repeat the above steps for any other C/C++ project

Now you have to reestablish project dependencies.

1. Right click on the C/C++ project and select Project Dependencies.
2. Check the box for each project that is a dependent of this project.
3. Click OK.
4. Repeat the above steps for any other C/C++ project that has dependencies.

Unlike earlier versions of Visual Studio, Visual Studio 2010 does not automatically link in the
output library of dependent projects, so you will need to add those libraries explicitly to the
parent project under Linker > Additional Dependencies. You can use the Visual Studio macros
$(ConfigurationName) and $(PlatformName) as required to qualify the path. For example:
..\FLIB\$(ConfigurationName)\FLIB.lib
Where $(ConfigurationName) will expand to Release or Debug, as appropriate. Similarly,
$(PlatformName) will expand to Win32 or x64 as appropriate.
0 Kudos
dannycat
New Contributor I
1,110 Views
Thanks Steve,

I've now got everything working. In addition to the changes described in the Release notes I alsohad to change the Library Output settings for the C projects as the convertor gives them the same name as the associated fortran project.

I like the new features available inVS2010 particularly the module function blocking which is very useful.

What is VS doing when it is 'Parsing file .....' this takes a long time on my aged laptop?

Steve
0 Kudos
Wendy_Doerner__Intel
Valued Contributor I
1,110 Views
Steve,
We now have source browser capability which is being setup when you get the message. You should still be able to do other operations while the files are being parsed, but if your laptop is really old maybe this is slowing you down. If you let me know the processor and OS on your laptop and if it prevents your from compiling, for instance, I can try to reproduce and report to engineering.
Thanks,
0 Kudos
dannycat
New Contributor I
1,110 Views

Hi Wendy,

The parsing issue does not stop me working on the laptop although I have encountered another problem, this time on my decktop (64 bit XP)where VS2010 freezes while running a debug session. The only way forward is to turn the computer off. The icons on the taskbar can be clicked but they don't change the focus from the program that is being debugged. Ctrl-Alt-Del doesn't do anything either). This program is ofa Windows format and works ok in outside of VS2010 and from within VS2008.

I also tried to setup the help so that F1 would take me to the appropriate reference for functions (both FORTRAN & Window SDK) as I used to do in VS2008. Unfortunately the help setup failed and I'm left withthe followingmessage when I load up my Solution.

"Visual Studio has encountered an exception. This may be caused by an extension.

You can get more information by running the application together with the /log parameter on the command line and then examining the file 'C\Documents and Settings\.......\Application data\Microsoft\visualStudio\10.0\ActivityLog.xml'"

Once I click OK the everything seems to beworking fine (apart from Help not working). I'm not sure if the two problems are related although I suspect not.

Any help on this would be most welcome.

Thanks

0 Kudos
Wendy_Doerner__Intel
Valued Contributor I
1,110 Views
Some customers have encountered this known Microsoft Visual Studio 2010 issue and found the workaround to be helpful. Can you try it?

------

Wendy

Attaching or including files in a post



0 Kudos
dannycat
New Contributor I
1,110 Views
Hi Wendy,

The link does not seem to relate to my problem it sends me to something taliking about Tabs.

0 Kudos
Wendy_Doerner__Intel
Valued Contributor I
1,110 Views
The exhibited problem is different but the cause and the workaround is the same. Can you try the workaround section to see if manually installing the stdole.dll. works for you?

------

Wendy

Attaching or including files in a post

0 Kudos
Reply