creat mmslite library 联系客服

发布时间 : 星期日 文章creat mmslite library更新完毕开始阅读0c12ebcdda38376baf1fae76

Creating MMS-EASE Lite Library

在VxMmsLite\\cmd\\win32目录下MMS-EASE Lite提供了Microsoft Visual Studio VC6.0 环境下的工作区和工程文件。

每一个工程有四种设置:“Release No Logging”, “Release Logging”, “Debug No Logging”, 和 “Debug Logging” 。详细设置如下:

在Microsoft Visual Studio VC6.0环境下打开所要编译的工程。

Release No Logging:选择“工程—设置”在“setting for”的下拉菜单中选择“Win32 Release No Logging”,在c++选项卡中的调试信息的下拉菜单中选择“None”;

Release Logging:选择“工程—设置”在“setting for”的下拉菜单中选择“Win32 Release”,在c++选项卡中的调试信息的下拉菜单中选择“None”;

Debug No Logging:选择“工程—设置”在“setting for”的下拉菜单中选择“Win32 Debug No Logging”,在c++选项卡中的调试信息的下拉菜单中选择“C7 compatible”;

Debug Logging:选择“工程—设置”在“setting for”的下拉菜单中选择“Win32 Debug ”,在c++选项卡中的调试信息的下拉菜单中选择“C7 compatible”; 所有的工程必须按照下列顺序进行编译:

1、Libraries

2、Utility applications

3、Sample applications

按下表顺序逐一编译各个工程生成*_ld.lib文件。生成的文件在VxMmsLite\\win32lib目录下。

asn1.dsp mem.dsp meml.dsp mlog.dsp mmsl.dsp ASN.1 encode/decode library ASN.1编码解码库 Memory allocation library - full featured version 内存分配库-完整特征 Memory allocation library - Lite version 内存分配库-Lite版本 MMS operation specific logging library MMS操作特定日志库 Main MMS encode/decode library 主MMS编码解码库 mmsle.dsp Extended MMS encode/decode library 扩展MMS编码解码库 mmslog.dsp MMS logging library MMS日志库 mvl.dsp mvlu.dsp MVL library MVL库 MVL UCA library MVL UCA 库 ositcpe.dsp TCP/IP (via RFC1006) stack library TCP/IP堆栈库 ositcps.dsp TCP/IP (via RFC1006) stack library using non-blocking sockets 使用不阻塞套接字的TCP/IP堆栈库 ositp4e.dsp 7 Layer OSI over Ethernet library 以太网以上的7层OSI库 ositpxe.dsp Library that includes TCP/IP (via RFC1006) and 7 Layer OSI over Ethernet 包含TCP/IP和以太网以上的7层OSI库 ositpxs.dsp Library that includes TCP/IP (via RFC1006) using non-blocking sockets and 7 Layer OSI over Ethernet 包含使用不阻塞套接字的TCP/IP和以太网以上的OSI库 ssec0.dsp

Required library for compatibility with future enhancements. 为以后提高兼容性规定的库

slog.dsp slogl.dsp smem.dsp util.dsp SISCO logging library - full featured version SISCO日志库-完整版本特征 SISCO logging library - Lite version SISCO日志库-Lite版本 Memory allocation library using “pools”. 用“pools”内存分配的库 SISCO utility library SISCO公用库 Library编译完成后,编译Utility applications。 foundry.dsp foundry.exe utility application foundry.exe公共应用 mbufcalc.dsp mbufcalc.exe utility application (obsolete) mbufcalc.exe公共应用(过时的) iecgoose.dsp IEC GOOSE Framework sample application IEC GOOSE结构应用示例 举例:加载foundry.dsp到vc6.0环境,点击按钮build,进行编译,程序会报很多相同的错误:“error LNK2001: unresolved external symbol *”。

解决方法:<1>将工程相应的头文件加入编译器,建立一个win32控制台程序,然后选择“工具->选择”在“目录”选项卡中加入头文件的文件夹路径VxMmsLite\\inc;<2>选择“工程->设置”在“link”选项卡 中的 “对象/库模块”中加入刚刚编译的*_ld.lib文件的文件名。

完成上述两个步骤后,在次点击build,即可编译成功生成foundry.exe。