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

1) clone project and 2) change project type from exe to dll

bmchenry
New Contributor II
1,131 Views

Looking through the various help files I have yet to find an easy way to:

1) clone a project? I have a project, I want to clone and rename it. I have been copying it all to new directory, opening it and then File->save project as. Which works. But is there another way?

2) I have a working exe project with many source files/mods/etc. I want to change/try the project as a DLL. There also doesn't seem to be any easy pathway to change the target of an exisiting project (Lookingin the .vfproj i could mess with it andinsert the changes required, but there must be a better/automatic way?

Any tips will be appreciated.

Brian

0 Kudos
2 Replies
Steven_L_Intel1
Employee
1,131 Views
There is no good way to do either of these things. You should create a new project with the desired settings. You don't need to copy source files, a source file can belong to multiple projects.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
1,131 Views
mchenry@mchenrysoftware.com:

2) I have a working exe project with many source files/mods/etc. I want to change/try the project as a DLL. There also doesn't seem to be any easy pathway to change the target of an exisiting project (Lookingin the .vfproj i could mess with it andinsert the changes required, but there must be a better/automatic way?

The answer really depends on why you need that. Like Steve said, there's no "easy" way to change the target type; more precisely, there is an "easy" way but it's kind of fragile.

Rather than cloning the project, I'd prefer to define a new configuration of the existing one -- just open Build/Configuration manager menu and clone one or more existing configurations (Debug or Release). From then on, you can change the settings of new ones (e.g. DllDebug and DllRelease). Note that you can "exclude file from build" for the individual files on the configuration basis, by changing the switch on the individual file's property sheet (e.g. for the purpose of removing a file containing PROGRAM).

The answer how do you want to change new configuration to a dll depends on what is your existing configuration though. If it's an .exe, (I think) all you have to do is to add /dll switch to the Properties/Linker/Command Line and change the "Output File". If it's a .lib, I don't see an obvious way though -- "messing with the .vfproj" file (helped by some reverse-engineering on a small test project) might as well be the only way.


0 Kudos
Reply