🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2205

C Set/2 & TCP/IP for OS/2 link problem

#2205
From: Tony Bennett
Date: Wed, 30 Sep 1992 16:01
28 lines
1654 bytes
I am new to OS/2 and to the C Set/2 compiler so please excuse my naivite.

I am trying to port an application from a UNIX environment that uses TCP/IP.

I have TCP/IP for OS/2 installed as well as WorkFrame/2, Developer's Toolkit/2,
and C Set/2. I tried compiling and linking my program and get 'unresolved 
external reference' errors for the TCP/IP functions.  I used 'lib' to look into
the TCP/IP library, tcpip.lib, and located the functions.  However, each has
an underscore pre-pended to it's name (_recv instead of recv).  I verified that 
the library's directory is included in LIBPATH.  I also tried compiling and 
linking from the command line using the following commands:
	icc /Sm -c pgm.c
	  link386 pgm.obj,pgm.exe,pgm.map,tcpip;

???
What am I doing wrong?

Also, I read posta ing on another newsgroup which the poster said she had no
problems doing this same thing.  However, she said she "...had to thunk all the
function calls that use sockets".   What is a 'THUNK'????

Thanks in advance.

-- 
-------------------------------------------------------------------------------
Tony R. Bennett, Consolidated Freightways, Inc. 
POB 4845, Portland, Or 97208     DISCLAIMER: My words are my own.  They do not
Voice: 503-499-2740                          represent the opinions of CF or 
Technical Details
Message-ID: <1992Sep30.160116.2561@techbook.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!techbook!tonyb

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!techbook!tonyb
From: tonyb@techbook.com (Tony Bennett)
Subject: C Set/2 & TCP/IP for OS/2 link problem
Message-ID: <1992Sep30.160116.2561@techbook.com>
Organization: TECHbooks --- Public Access UNIX --- (503) 220-0636
Date: Wed, 30 Sep 1992 16:01:16 GMT
Lines: 28