The following pragma causes the linker to search for the EMAPI.LIB library while linking. The linker searches first in the current working directory and then in the path specified in the LIB environment variable.#pragma comment( lib, "emapi" )
把lib加入到你的工程里,保存你的工程,下次打开的时候自然就有了
补充一点: The following pragma causes the linker to search for the EMAPI.LIB library while linking. The linker searches first in the current working directory and then in the path specified in the LIB environment variable.#pragma comment( lib, "emapi" )下面的预编译指令促使连接器在链接的时候搜索EMAPI.LIB库.链接器首先在当前工作目录下搜索,之后在LIB环境变量的指定的路径里搜索. #pragma comment( lib, "emapi" ) 一般在相应的头文件的开始部分,定义它.这与在工程LINK标签里设置是等价的.
#pragma comment(lib, "yourlibfilename.lib")
还是这个好
The following pragma causes the linker to search for the EMAPI.LIB library while linking. The linker searches first in the current working directory and then in the path specified in the LIB environment variable.#pragma comment( lib, "emapi" )下面的预编译指令促使连接器在链接的时候搜索EMAPI.LIB库.链接器首先在当前工作目录下搜索,之后在LIB环境变量的指定的路径里搜索.
#pragma comment( lib, "emapi" )
一般在相应的头文件的开始部分,定义它.这与在工程LINK标签里设置是等价的.
这样你每次编译的时候, 都会到缺省路径下去搜索的.
当然, 你也得把你的lib文件加入到工程中去.