home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / protocol / tcpip / ibmpc / 5014 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.7 KB

  1. Path: sparky!uunet!stanford.edu!agate!ucbvax!FTP.COM!rcq
  2. From: rcq@FTP.COM (Bob Quinn)
  3. Newsgroups: comp.protocols.tcp-ip.ibmpc
  4. Subject: Re: Socket Libraries for PC compilable with Borland C/ C++
  5. Message-ID: <9209021446.AA03856@ftp.com>
  6. Date: 2 Sep 92 14:46:05 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Reply-To: rcq@ftp.com
  9. Distribution: world
  10. Organization: The Internet
  11. Lines: 35
  12.  
  13. >    sbjie@engr.psu.edu (Sanjay Joshi) writes:
  14. >   >
  15. >   >Are there any public or commercial socket libraries available that will
  16. >   >compile using Borland C and or C++ ??
  17. >   >
  18. >   >I did get some info from FTP Software INc., in thier info packet is says 
  19. >   >that the libraries are MIcrosoft C libraries.  Has anybody been able
  20. >   >to compile and link these with Borland C ?? Are there any other vendors
  21. >   >out there who wouls supply these libraries.
  22. >   >
  23. >   
  24. >   FTP provides C source so you can make any necessary changes.  I think
  25. >   recompiling is all that's necessary, but I can't remember.
  26.  
  27. This is correct, with a few caveats:
  28.  
  29.     1) Add the following to the source code (this tells the
  30.        Borland C++ compiler to replace any Microsoft C runtime func-
  31.        tions with the Borland equivalents):
  32.  
  33.                   #define __MSC
  34.  
  35.     3) Use the Compiler option -Fc to generate "communal variables"
  36.        (COMDEFs).  This essentially makes variables global, when they
  37.        would otherwise be local the C++ scope of an object.
  38.  
  39.     2) Use Linker options -Fc and -N to be case sensitive (same as
  40.        using the /NOI option with the Microsoft linker) and avoid
  41.        linking with default libraries, respectively.
  42.  
  43. --
  44.  Bob Quinn                                             rcq@ftp.com
  45.  FTP Software, Inc.                                  Wakefield, MA
  46.  
  47.  
  48.