Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
27554 Discussions

Adding version number to the output target file name (.dll)

Ibrahim_A_
Novice
348 Views

Hello,

I'm using visual studio with Intel fortran compiler to build a (DLL). I want to change the output file name incrementally every time so that the newly compiled (DLL) would have a different number than the previous (e.g. version number, time or date).

Could I get help on that?

0 Kudos
1 Reply
jimdempseyatthecove
Black Belt
348 Views

With Visual Studio you can set a PreBuild event (and/or PostBuild event) that can be use to run a program (batch) that you write that increments an environment variable (YourSequenceVariable). Then you can use the $(YourSequenceVariable) in the output name/folder.

Jim Dempsey

Reply