[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::decc

Title:DECC
Notice:General DEC C discussions
Moderator:TLE::D_SMITHNTE
Created:Fri Nov 13 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2212
Total number of notes:11045

2164.0. ""socket" undefined on VMS/AXP ?" by BALZAC::KUOCH () Mon Apr 28 1997 08:55

    The following code is compiled and linked on OpenVMS/VAX V5.5-2,
    DECC V5.0-003, OK, no problem.

    But with OpenVMS/AXP V6.2, DECC V5.0-003, UCX V3.3-7, at link, the function
    socket is undefined, even if I linked with sys$library:ucx$ipc_shr/share.

    Any ideas ?

Thank you in advance.
Cheu.
------------------------------------------------------------------------------
#include <unistd.h>
#include <sys/types.h>
#include <unixio.h>
#include <unixlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <unixio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>

main ()
{
  int f;

  f=socket (AF_INET, SOCK_STREAM, 0);

} 
    
T.RTitleUserPersonal
Name
DateLines
2164.1cc/prefix=allBALZAC::KUOCHMon Apr 28 1997 10:241
    Solution : cc/prefix=all (conference LASSIE::UCX, note 4443.1)
2164.2Consider Upgrades, Too...XDELTA::HOFFMANSteve, OpenVMS EngineeringMon Apr 28 1997 14:2512
:    The following code is compiled and linked on OpenVMS/VAX V5.5-2,
:    DECC V5.0-003, OK, no problem.

   DEC C for OpenVMS VAX has a slightly different default for /PREFIX
   and for alignment and a few other areas than does DEC C for OpenVMS
   Alpha, but both platforms will accept and process /PREFIX=ALL. 

   I would also recommend upgrades: to your OpenVMS VAX node to V6.2 or
   to V7.1 (the latter is current), to your DEC C (V5.5-003 is current)
   and to UCX (V4.1 is current)...