home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!ucbvax!FTP.COM!rcq
- From: rcq@FTP.COM (Bob Quinn)
- Newsgroups: comp.protocols.tcp-ip.ibmpc
- Subject: Re: Socket Libraries for PC compilable with Borland C/ C++
- Message-ID: <9209021446.AA03856@ftp.com>
- Date: 2 Sep 92 14:46:05 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Reply-To: rcq@ftp.com
- Distribution: world
- Organization: The Internet
- Lines: 35
-
- > sbjie@engr.psu.edu (Sanjay Joshi) writes:
- > >
- > >Are there any public or commercial socket libraries available that will
- > >compile using Borland C and or C++ ??
- > >
- > >I did get some info from FTP Software INc., in thier info packet is says
- > >that the libraries are MIcrosoft C libraries. Has anybody been able
- > >to compile and link these with Borland C ?? Are there any other vendors
- > >out there who wouls supply these libraries.
- > >
- >
- > FTP provides C source so you can make any necessary changes. I think
- > recompiling is all that's necessary, but I can't remember.
-
- This is correct, with a few caveats:
-
- 1) Add the following to the source code (this tells the
- Borland C++ compiler to replace any Microsoft C runtime func-
- tions with the Borland equivalents):
-
- #define __MSC
-
- 3) Use the Compiler option -Fc to generate "communal variables"
- (COMDEFs). This essentially makes variables global, when they
- would otherwise be local the C++ scope of an object.
-
- 2) Use Linker options -Fc and -N to be case sensitive (same as
- using the /NOI option with the Microsoft linker) and avoid
- linking with default libraries, respectively.
-
- --
- Bob Quinn rcq@ftp.com
- FTP Software, Inc. Wakefield, MA
-
-
-