How to include a library file?
-
Hi everybody! I downloaded a project.When I compiled it, I got an error saying 'Cannot open Iphlpapi.lib'. Then i downloaded the library file and included it in the project. Still it shows this error! I dono what has to be done! Please help me! Thanks in advance!
-
Hi everybody! I downloaded a project.When I compiled it, I got an error saying 'Cannot open Iphlpapi.lib'. Then i downloaded the library file and included it in the project. Still it shows this error! I dono what has to be done! Please help me! Thanks in advance!
you have to tell the linker where to find the .lib file. look in your project settings, and reach the linker "additionnal libraries" option...
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
Hi everybody! I downloaded a project.When I compiled it, I got an error saying 'Cannot open Iphlpapi.lib'. Then i downloaded the library file and included it in the project. Still it shows this error! I dono what has to be done! Please help me! Thanks in advance!
Do you have the latest platform SDK installed. To include a lib file you can also use... Another option is use
#pragma comment( lib, "Iphlpapi.lib" )
Nibu thomas A Developer Programming tips[^] My site[^]
-
Do you have the latest platform SDK installed. To include a lib file you can also use... Another option is use
#pragma comment( lib, "Iphlpapi.lib" )
Nibu thomas A Developer Programming tips[^] My site[^]
-
Nibu babu thomas wrote:
#pragma comment( lib, "Iphlpapi.lib" )
Why is that called "comment" any relavance?:~
286? WOWW!:-O
_8086 wrote:
Why is that called "comment" any relavance
From MSDN: #pragma comment( comment-type [, commentstring] ) Places a comment record into an object file or executable file. The comment-type is one of five predefined identifiers, described below, that specify the type of comment record. The optional commentstring is a string literal that provides additional information for some comment types. Because commentstring is a string literal, it obeys all the rules for string literals with respect to escape characters, embedded quotation marks ("), and concatenation. lib: Places a library-search record in the object file. This comment type must be accompanied by a commentstring parameter containing the name (and possibly the path) of the library that you want the linker to search. Since the library name precedes the default library-search records in the object file, the linker searches for this library just as if you had named it on the command line. You can place multiple library-search records in the same source file; each record appears in the object file in the same order in which it is encountered in the source file.
Nibu thomas A Developer Programming tips[^] My site[^]
-
_8086 wrote:
Why is that called "comment" any relavance
From MSDN: #pragma comment( comment-type [, commentstring] ) Places a comment record into an object file or executable file. The comment-type is one of five predefined identifiers, described below, that specify the type of comment record. The optional commentstring is a string literal that provides additional information for some comment types. Because commentstring is a string literal, it obeys all the rules for string literals with respect to escape characters, embedded quotation marks ("), and concatenation. lib: Places a library-search record in the object file. This comment type must be accompanied by a commentstring parameter containing the name (and possibly the path) of the library that you want the linker to search. Since the library name precedes the default library-search records in the object file, the linker searches for this library just as if you had named it on the command line. You can place multiple library-search records in the same source file; each record appears in the object file in the same order in which it is encountered in the source file.
Nibu thomas A Developer Programming tips[^] My site[^]
-
_8086 wrote:
Thanks I get it now.
Really ! :)
Nibu thomas A Developer Programming tips[^] My site[^]