How to use the C socket API in C++ on z/OS

前端 未结 9 785
闹比i
闹比i 2021-02-01 11:23

I\'m having issues getting the C sockets API to work properly in C++ on z/OS.

Although I am including sys/socket.h, I still get compile time errors telling m

9条回答
  •  伪装坚强ぢ
    2021-02-01 11:57

    Use the following c89 flag:

     -D_OE_SOCKETS
    

    Example:

     bash-2.03$ c89 -D_OE_SOCKETS [filename].c
    

    For more information look for c89 Options in the z/OS XLC/C++ User's Guide.

提交回复
热议问题