RT

解决方案 »

  1.   

    具体是这样的:现在一组zigbee开发包,包括h,dll和lib文件,他们提供api接口.不知怎样初始化。
      

  2.   

    工程->属性->第二页,import lib
      

  3.   

    project option --> Parameters --> Linker
    在里面加上需要添加的库的名字就可以了。
      

  4.   

    按上面大侠的方法做了,可出现下需提示:[Build Error]  No rule to make target `TestEngine.o', needed by `Project1.exe'.  Stop.====================================
    开发包中提供了TestEngine.h,TestEngine.dll和TestEngine.lib.调用其中一个function:initTestEngine(1, "com1", 115200, 0);
    出现上面提示.我是这样做的:
    1):在project中把TestEngine.lib加进去.
    2):在project-->project options --> parameters -->linker 选择TestEngine.lib.
    3):在project-->project options --> parameters --> directories 选择TestEngine.lib文件夹.不知道哪儿不妥.
      

  5.   

    project->link->object/library modules  加上所用的.lib
    在你的工程中用到的地方包涵.h就可以了吧
    把.dll放在和exe一个目录下
      

  6.   

    是不是在Dev C++中不能*.lib库啊
    因为它的c complier是GCC!
    不知哪位大侠有这方面的经验???
      

  7.   

    在DEV C++ HELP中有这样的描述:==============================================================A little history : 
    Library filenames under the GNU system are in the form libNAME.a (with NAME the name of the library, like wsock32).
    Thus if for example you want to use the wsock32 (winsock) library, the filename will be libwsock32.a
    The GCC parameter for linking a library is 杔NAME, so for linking with the wsock32 library we would give GCC the 杔wsock32 parameter.====================================================================