China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-30 18:47
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Help: Can't connect to the WattCP connection library with Borland C 3.1? View 6,904 Replies 36
Floor 31 Posted 2003-07-08 00:00 ·  中国 浙江 杭州 电信
初级用户
Credits 126
Posts 13
Joined 2003-06-30 00:00
23-year member
UID 6174
Gender Male
Status Offline
Oh, heh heh. Next time, you should post examples of success.

Now my WATTCP program has issues after running for about 10 minutes.
Floor 32 Posted 2003-07-11 00:00 ·  中国 北京 联通
初级用户
Credits 152
Posts 19
Joined 2003-05-22 00:00
23-year member
UID 2324
Gender Male
Status Offline
-->to glinda The document has been sent, please check it.
-->Horse with glasses, I've been on a business trip these days and didn't continue
Floor 33 Posted 2003-09-03 00:00 ·  中国 北京 联通
初级用户
Credits 152
Posts 19
Joined 2003-05-22 00:00
23-year member
UID 2324
Gender Male
Status Offline
I haven't messed with this for a long time. Finally, it was compiled successfully these two days. The steps are as follows:
1. Regenerate a new lib library.
2. Change all the program suffixes in the project file to *.C instead of *.CPP.
3. Add fresh *.lib.
The project was compiled and linked successfully in Borland C 3.1, and the communication is normal.
But the program has increased by 100k.

Floor 34 Posted 2004-09-19 00:00 ·  中国 江苏 扬州 电信
初级用户
Credits 169
Posts 31
Joined 2003-01-25 00:00
23-year member
UID 802
Gender Male
Status Offline
wattcp provides a C function library. To compile a C++ program, you need to add the following instructions before including the header file:
#ifdef _cplusplus
extern "C"{

#include "wattcp.h"
}
#endif
If necessary, open wattcp.h, add the above statement before all function definitions, and recompile the wattcp library; otherwise, an error will occur during linking.
Floor 35 Posted 2004-09-20 00:00 ·  中国 广东 珠海 联通
中级用户
★★
bbpc
Credits 340
Posts 107
Joined 2004-04-11 00:00
22-year member
UID 22257
Gender Male
Status Offline
I want to give everyone a bc45 ping project, but I don't know how to upload it. Our company's boards all run the wattcp protocol stack, and I have made many examples such as web, ftp, telnet, etc. It's a bc45 project. www.baby-pc.com
x86!dos!
爱你就象老鼠爱大米
http://www.baby-pc.com/
Floor 36 Posted 2010-01-29 10:50 ·  中国 北京 联通
初级用户
Credits 52
Posts 23
Joined 2009-12-25 15:51
16-year member
UID 157317
Gender Male
Status Offline
The three files under the \lib: wattcphg.lib, wattcplg.lib, wattcpsm.lib correspond to huge, large, small models respectively. Open them with ultraEdit, and you can see the ASCII code of "borland 3.1". It shows that these three libraries should be used under borland 3.1. If it really doesn't work, just make the makefile by yourself. Isn't there a make.exe under bc31\bin? It's very similar to the make in linux gcc.
Floor 37 Posted 2010-02-26 13:20 ·  中国 台湾 中华电信(HiNet)数据中心
初级用户
Credits 68
Posts 17
Joined 2008-03-02 14:38
18-year member
UID 111866
Gender Male
Status Offline
Please refer to http://www.bgnett.no/~giva/

Borland C/C++ requires version 4.x or later ~~~~

Supported Platforms

Watt-32 supports these compilers and environments:

GNU C/C++ 2.7 (or later) with djgpp 2.x DOS-extender.
Metaware HighC 3.x with PharLap DOS-extenders.
Borland C/C++ 4.x (or later), small/large/flat (PowerPak) models.
Watcom C/C++ 11.x (or later), small/large/flat (DOS4GW/Pharlap) models.
Microsoft Quick C v6.0 (or later), small/large model (Not fully working).
Digital Mars Compiler 8.34 (or later), small/large/32-bit (FlashTek X32) models.
LADSoft's CC386 2.32 (or later), flat model only (Not fully working).
Native WIN32 versions: MingW 3+, Visual-C 6+, OpenWatcom 1.2+ or PellesC (only tested with Win-XP).
Forum Jump: