(1) EPICS官网下载Demo并复制文件到指定位置
(2) 创建Modules文件夹,wget https://epics.anl.gov/download/modules/asyn4-35.tar.gz
(3) 解压文件,修改configure RELEASE 的EPICS Base路径
(4) 注释RELEASE再编译
(5) 编译boost
yum install boost
yum install boost-devel
yum install boost-doc
(6)s7nodaveAsyn.cc添加以下代码:
#include <fcntl.h>
#include <sys/types.h>
#ifdef _WIN32
#define NOMINMAX
#include <winsock2.h>
#include <ws2tcpip.h>
typedef const char* SOARGTYPE;
#else
#include <netdb.h>
#include <sys/socket.h>
#include <unistd.h>
typedef int SOCKET;
#define INVALID_SOCKET -1
typedef const void* SOARGTYPE;
#define closesocket close
#endif
(7) 添加DB文件