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

How to figure out what kind of fortran solution I have in Visual Studio

awa5114
Beginner
348 Views

I am using Visual Studio 2012 with Intel Visual Fortran Composer 2013. When creating a new Intel Visual Fortran project, the user may select from the following Fortran project types:

  • Console Application
    • Empty Project
    • Main Program Code
  • Library
    • Dynamic-link Library
    • Dynamic-link Library with Sample Code
    • Static Library
  • QuickWin Application
    • QuickWin Application
    • Standard Graphics Application
  • Windowing Application
    • ActiveX Dialog Code
    • ActiveX MDI Code
    • ActiveX SDI Code
    • Dialog Code
    • Empty Project
    • MDI Code
    • SDI Code
  • COM Server
    • In-process Server (DLL)
    • Out-of-process Server (EXE)

My problem is that I have a large, complex, alread-existing solution provided to me by a 3rd party. I need to do a lot of work on this solution. I wish to determine what category of project from the above categories this solution is, since whoever created it must have selected one of the above options. What is a straightforward way of doing this? Does the software have a memory of what kind of project it is?

 

0 Kudos
4 Replies
andrew_4619
Honored Contributor II
348 Views

In the linker (and compiler)  command line under the project properties should tell you what you need to know. look at /SUBSYSTEM:  value for example

0 Kudos
awa5114
Beginner
348 Views

For a console application under Linker>Command Line 

  • /SUBSYSTEM:CONSOLE

For a Dynamic Link Library, QuickWin Application, ActiveX Dialog Code, ActiveX SDI Code

  • /SUBSYSTEM:WINDOWS

For a Static Library I see no /SUBSYSTEM variable at all.

This is all well and good for verifying if a project is a console application or not, but how to distinguish between DLL, QuickWin, ActiveX Dialog Code and ActiveX SDI code for example?

0 Kudos
andrew_4619
Honored Contributor II
348 Views

Qwin will have /libs:qwin on the compile command ...... As for the others I don't know if there is some easier way of knowing but all will result in some  combo of options on the command lines. Why do you need to know? The project will do what its does....

0 Kudos
jimdempseyatthecove
Honored Contributor III
348 Views

Also, open the Solution Explorer pane, right click on the project (note, you can have multiple projects), select Properties, then open Configuration Properties, then General, you will find a read-only property named Configuration Type.

Jim Dempsey

0 Kudos
Reply