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

Standard way to identify the toolset in library names?

Michiel_V_
Beginner
311 Views

Dear forum users,

 

Is there a default way to identify the toolset (in my case Intel Parallel Studio XE 2016) in the name of a library file that was build with that toolset? As an example, for Microsoft Visual Studio 2015 such an identification is "-vc140" (yielding library names like "libboost_atomic-vc140-mt-1_60.lib") . I'm looking for a similar way to include a reference to the Fortran toolset in my library files. I'd expect something like "-xe2016".

 

Thanks,

 

Michiel.

0 Kudos
3 Replies
Steven_L_Intel1
Employee
311 Views

No, and any such convention is specific to the project. BOOST probably does this because MSVC code tends to be tied to the particular version of Visual Studio used to build it. This isn't the case for Intel Fortran.

0 Kudos
jimdempseyatthecove
Honored Contributor III
311 Views

To insert your own comment try:

!DIR$ OBJCOMMENT USER: 'Put your text here'

The IVF documentation only lists the comment type LIB, but it may include all comment types:

compiler, exestr, lib, linker, user

This may also be suitable for your purposes

!DIR$ OBJCOMMENT COMPILER

You could also add linker options to decorate your .lib, .dll with comments

Jim Dempsey

 

0 Kudos
Michiel_V_
Beginner
311 Views

Thank you very much for your answers gentlemen!

0 Kudos
Reply