www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - wsock32 for DMC

↑ ↓ ← "Gisle Vanem" <giva users.sourceforge.net> writes:
Isn't there a wsock32 import lib for DMC?
I tried using the one from MSVC, but the linker
complained.

Anyone?

--gv
May 26 2003
↑ ↓ Arjan Knepper <ask me.to> writes:
ws2_32.lib?

Arjan

Gisle Vanem wrote:
 Isn't there a wsock32 import lib for DMC?
 I tried using the one from MSVC, but the linker
 complained.
 
 Anyone?
 
 --gv
 
 

May 27 2003
↑ ↓ "Gisle Vanem" <giva users.sourceforge.net> writes:
"Arjan Knepper" <ask me.to> wrote:

 ws2_32.lib?

I don't have that either. Is it only included with the commercial version? --gv
May 27 2003
↑ ↓ Arjan Knepper <ask me.to> writes:
hmm i guess so.

You could create import lib wsock32.lib yourself.
If you have the M$ platform sdk installed somewhere try using the 
modified implib from here:
http://www.digitalmars.com/~jan

It automagically adds the correct decorations.

Good Luck
Arjan

Gisle Vanem wrote:
 "Arjan Knepper" <ask me.to> wrote:
 
 
ws2_32.lib?

I don't have that either. Is it only included with the commercial version? --gv

May 27 2003
↑ ↓ "Gisle Vanem" <giva users.sourceforge.net> writes:
"Arjan Knepper" <ask me.to> wrote:
 You could create import lib wsock32.lib yourself.
 If you have the M$ platform sdk installed somewhere try using the
 modified implib from here:
 http://www.digitalmars.com/~jan

 It automagically adds the correct decorations.

No, it doesn't. The "/suffix" arg doesn't add " n" to the symbols. (as required by dmc's winsock.h). --gv
May 27 2003
→ Jan Knepper <jan smartsoft.us> writes:
Yes it does...
You might be missing a .ini file or have an incomplete .ini file which
defines the stack sizes for the several parameter types. Check
implib.ini
Also make sure you provide the proper include path(s) so that implib
can find the matching include files with the function prototypes.

Jan



Gisle Vanem wrote:

 "Arjan Knepper" <ask me.to> wrote:
 You could create import lib wsock32.lib yourself.
 If you have the M$ platform sdk installed somewhere try using the
 modified implib from here:
 http://www.digitalmars.com/~jan

 It automagically adds the correct decorations.

No, it doesn't. The "/suffix" arg doesn't add " n" to the symbols. (as required by dmc's winsock.h).

May 27 2003
Arjan Knepper <ask me.to> writes:
Oh well I see you need sppn.exe I guess that is on the cd as well. But 
maybe it also accepts an other preprocessor. Ask Jan.

You could also just use implib to create a lib from the dll and create a 
def file for correction of the decorations. See the faqs.

Arjan

Gisle Vanem wrote:
 "Arjan Knepper" <ask me.to> wrote:
 
You could create import lib wsock32.lib yourself.
If you have the M$ platform sdk installed somewhere try using the
modified implib from here:
http://www.digitalmars.com/~jan

It automagically adds the correct decorations.

No, it doesn't. The "/suffix" arg doesn't add " n" to the symbols. (as required by dmc's winsock.h). --gv

May 27 2003
↑ ↓ "Gisle Vanem" <giva users.sourceforge.net> writes:
"Arjan Knepper" <ask me.to> wrote:

 Oh well I see you need sppn.exe I guess that is on the cd as well. But
 maybe it also accepts an other preprocessor. Ask Jan.

I don't have sppn.exe, but got it working by using the MingW preprocessor. I put this in implib.ini: SPPN.EXE="g:\MingW32\bin\cpp.exe" CFLAGS="-D__MINGW32__ -D__MINGW_IMPORT -DIN="" -DOUT="" -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -DSTRICT" And ran: implib /v /system /Ig:\MingW32\include /suffix wsock32.lib wsock32.dll No MS tools or SDK where used. --gv
May 27 2003
↑ ↓ → Jan Knepper <jan smartsoft.us> writes:
Cool! I did not know that that would work!
Jan



Gisle Vanem wrote:

 "Arjan Knepper" <ask me.to> wrote:

 Oh well I see you need sppn.exe I guess that is on the cd as well. But
 maybe it also accepts an other preprocessor. Ask Jan.

I don't have sppn.exe, but got it working by using the MingW preprocessor. I put this in implib.ini: SPPN.EXE="g:\MingW32\bin\cpp.exe" CFLAGS="-D__MINGW32__ -D__MINGW_IMPORT -DIN="" -DOUT="" -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -DSTRICT" And ran: implib /v /system /Ig:\MingW32\include /suffix wsock32.lib wsock32.dll No MS tools or SDK where used. --gv

May 27 2003