c++ - wsock32 for DMC
- Gisle Vanem (5/5) May 26 2003 Isn't there a wsock32 import lib for DMC?
- Arjan Knepper (3/12) May 27 2003 ws2_32.lib?
- Gisle Vanem (3/4) May 27 2003 I don't have that either. Is it only included with the commercial versio...
- Arjan Knepper (9/20) May 27 2003 hmm i guess so.
- Gisle Vanem (4/9) May 27 2003 No, it doesn't. The "/suffix" arg doesn't add "@n" to the symbols.
- Jan Knepper (8/18) May 27 2003 Yes it does...
- Arjan Knepper (6/22) May 27 2003 Oh well I see you need sppn.exe I guess that is on the cd as well. But
- Gisle Vanem (10/12) May 27 2003 I don't have sppn.exe, but got it working by using the MingW preprocesso...
- Jan Knepper (3/15) May 27 2003 Cool! I did not know that that would work!
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
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
"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
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
"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
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
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
"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
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