rx72m使用lib库 lib库的封装与使用

写的程序想生成个库,把相关的.c文件和.h文件封装编译,生成xxx.lib,然后把xxx.lib和xxx.h给别人使用即可

我不知道瑞萨的rx72系列把源码封装成库,或者使用别人的库进行调用,其中的细节和流程不是很清楚,有不会的地方,比如我按照以下步骤生成静态库项目

以下步骤显示了如何创建静态库项目的示例

1、选择文件 --> 新建 --> Renesas C/C++ Project --> Renesas RX

2、 选择Renesas CC-RX C/C++ Library Project,单击下一步继续

3、在项目详细信息页面上,输入静态lib项目的名称,(例如lib),然后单击next

4、在设备和工具选择中,选择与可执行项目相同的设备和工具链

创建出工程后不知道怎么生成库,然后给别人调用。

个人邮箱:[email protected]

Parents
  • You should post in Chinese community or translate and post to English community.

    Simply speaking, library file is just an archive of object files.
    (Not exactly same as *.a in GCC, but *.lib is very similarly formatted and works similarly.)
    Therefore, linking library is virtually the same as linking other objects compiled separately.
    The usage of header file should be the same as you use external reference of functions and variables in other source files.

Reply
  • You should post in Chinese community or translate and post to English community.

    Simply speaking, library file is just an archive of object files.
    (Not exactly same as *.a in GCC, but *.lib is very similarly formatted and works similarly.)
    Therefore, linking library is virtually the same as linking other objects compiled separately.
    The usage of header file should be the same as you use external reference of functions and variables in other source files.

Children
No Data