我原来没用过VC,现在要用VC调一个程序,需要连入一个LIB库文件,我设了一下好象不对,报
Linking...
test.obj : error LNK2001: unresolved external symbol "void __cdecl netInit(void)" (?netInit@@YAXXZ)
Debug/test.exe : fatal error LNK1120: 1 unresolved externals请问应该如何设置

解决方案 »

  1.   

    how about ur statement ?
      

  2.   

    tools->option->directories->lib files
      

  3.   

    在工程里添加资源lib,这样也许就可以了。不知道你是不是要这样加!
      

  4.   

    1.project -> add to project -> Files -> YourLibFile
    2.project -> Settings -> Link -> Object/objectmodule -> YourLibFile
      

  5.   

    try add this to ur source file :#pragma comment( lib, "yours.lib" )
      

  6.   

    #progma comment( lib, "youlibname" )
      

  7.   

    #include "库相应的头文件"
    #pragma comment(lib,"库名")
      

  8.   

    First, u'd confirm which is the necessary lib file
      

  9.   


    1) #pragma comment(lib, "abc.lib")
    指示链接器连接abc.lib
    这和将abc.lib 加到工程设置的link中一样。2)project->setting中Link->object/library modules加入相应的lib文件
      

  10.   

    project-> add to project -> file->your lib