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

compiler directive to force linker...

uhbarney
Beginner
426 Views
In C (under MS Windows), the following C preprocessor directive will inform the linker that it should link in the library module "foobar.lib"

/*
* Ensure that our library gets passed to the linker.
*/
#pragma comment(lib, "foobar.lib")

This avoids the need to place foobar.lib in the "project settings"/link/input/"project options" list.

Is there a similar Compaq VF compiler preprocessor command that will do the same thing?

Thanks!
0 Kudos
1 Reply
Steven_L_Intel1
Employee
426 Views
!DEC$ OBJCOMMENT LIB:"foobar.lib"

Steve
0 Kudos
Reply