Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!ncar!boulder!stan!dancer!imp From: imp@dancer.Solbourne.COM (Warner Losh) Newsgroups: comp.protocols.tcp-ip Subject: Re: Problems with WIN/TCP v5.1... Message-ID: <1990Jul19.162537.21557@Solbourne.COM> Date: 19 Jul 90 16:25:37 GMT References: <25049@nigel.udel.EDU> Sender: news@Solbourne.COM Organization: Solbourne Computers Inc. Lines: 55 In article <25049@nigel.udel.EDU> garrett@oscar.ccm.udel.edu writes: >I have been following the examples in the WIN/TCP Programming >Guide... The programming guide doesn't match reality in all cases. The thing that you need to know to get programs to link is there is only one library called TWGLIB. It replaces LIBNET and LIBNETACC. These libraries are for use only by Euncie. There should have been stuff in the release notes about this, but my memory here is a bit faded. >After copying these files, I was able to compile CLIENT.C and SERV.C, but got >the following warning in the process: > > typedef long size_t; >%CC-W-DUPDEFINITION, Duplicate definition of "size_t". > At line number 41 in TWG$TCP:[NETDIST.INCLUDE.SYS]TYPES.H;1. > >Is this a bad thing? No. size_t gets redefined from an unsigned int to a signed int (since VAX-C has int == long). Unless you are dealing with very large objects, this shouldn't be a problem. The original definition is in something like SYS$LIBRARY:TYPES.H or some other include VAX-C include file. If you remove it from [NETDIST.INCLUDE.SYS]TYPES.H, then the error will go away. You can also change it to "typedef unsigned int size_t". Also, you should be using the types.h file from twg$tcp:[netdist.include.sys] off the 5.1 tape. It is not in the VMS 4.x installation saveset due to an oversite. You can get it out of the "B" saveset (fullname WIN_TCP051.B I think). >As was suggested in the "Compiling, Linking and Running Network Code" section >of the manual, I added the following definitions to my login.com file to >make the link steps a little easier: This section is wrong. The libraries that you use have changed in release 5.1. You should add the following to your login.com $ define LNK$LIBRARY SYS$LIBRARY:VAXCRTL.OLB $ define LNK$LIBRARY TWG$TCP:[NETDIST.LIB]TWGLIB.OLB >%LINK-W-NUDFSYMS, 2 undefined symbols: >%LINK-I-UDFSYM, _$EMUL >%LINK-I-UDFSYM, _$MOVE These routines are found in LIBNET, so if you list that after the LIBNETACC (for a second time), you shouldn't get errors. However, you will be better off in the long run by using TWGLIB. Try these suggestions. They should help. All of the above is from memory, since I no longer work for TWG. -- Warner Losh imp@Solbourne.COM Boycott Lotus. #include