- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
/*
* 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!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
!DEC$ OBJCOMMENT LIB:"foobar.lib"
Steve
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page