project->add to project->files->选中库-〉结束

解决方案 »

  1.   

    Option->Directories有个Libaray Paths选择
      

  2.   

    project/settings/link->(object/libery modules)
      

  3.   

    project/settings/link->(object/libery modules)
    或把该库复制到工程目录中后
    project->add to project->files->库文件
      

  4.   

    楼上各位都可以实现的!多谢
    可不可以通过Libaray Paths选择选择。

    Option->Directories有个Libaray Paths选择
    Option在那里阿?
      

  5.   

    采用相对路径,隐式包含最好,便于集中管理!导出时:
    project/settings/link->Project Optinos:手工修改为:"..\DLib\AVKernel.lib" /nologo /subsystem:windows /dll /incremental:yes /pdb:"Debug/AVKernel.pdb" /debug /machine:I386 /def:".\AVKernel.def" /out:"..\Bin\AVKernel.dll" /implib:"..\DLib\AVKernel.lib" /pdbtype:sept 导入时:
    #include "..\\AVKernel\AVKernel.h"
    #ifdef _DEBUG 
    #pragma comment(lib,"..\\DLib\\AVKernel.lib")
    #pragma message("Automatically linking with AVKernel.lib")
    #else
    #pragma comment(lib,"..\\RLib\\AVKernel.lib")
    #pragma message("Automatically linking with AVKernel.lib")
    #endif