f



sys/socket.h & netdb.h No such file or directory

I installed djgpp on my ms-dos machine and its ok when running hello
world
or some kernel sources but i couldn't compile client server programs
'cause they need to include sys/socket.h and other networking
libraries.
i dwonloaded all the zip files come with the package but still it
gives me
this error. how can i compile these programs.

in fact i have compiled and run my code with gcc under linux...:(
0
smarto59 (36)
7/15/2004 11:41:04 PM
comp.os.msdos.djgpp 3308 articles. 1 followers. tigrepotrazosalvaje (34) is leader. Post Follow

2 Replies
2807 Views

Similar Articles

[PageSpeed] 5

smarto59@hotmail.com wrote:
> I installed djgpp on my ms-dos machine and its ok when running hello
> world
> or some kernel sources but i couldn't compile client server programs
> 'cause they need to include sys/socket.h and other networking
> libraries.

Of course you couldn't: DOS isn't, all by itself, a networking-enabled
operating system, so you shouldn't expect compilers targetting it
to come with networking libraries and headers --- those have to be
supplied by separate programs.

> i dwonloaded all the zip files come with the package 

Why on earth would you do that rather than just looking up what these
packages are supposed to do, in the index files that come in the same
directories?

Hint: the packages you're looking after will have words like
'networking', 'sockets', or 'TCP' in their names.

-- 
Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.
-1
broeker (2903)
7/16/2004 11:57:14 AM
> libraries.  i dwonloaded all the zip files come with the package but
> still it gives me this error. how can i compile these programs.

Get the WATTCP library (www.wattcp.com).  It's free and should do the
task, if you don't need PPP (ie. modem dial-up and such).

> in fact i have compiled and run my code with gcc under linux...:(

So why the sad look then?  Doing the networking in Linux is far better
idea than do it in DOS.  If that's the option, I would switch to Linux
immediately.

-- 
Egon Eckert, Heaven Industries, s.r.o.
E-mail: egon@heaven.industries.cz

Never be afraid to try something new. Remember, amateurs built the
ark; professionals built the Titanic. -- Anonymous
0
egon1 (15)
7/18/2004 2:32:08 PM
Reply:

Similar Artilces:

missing include files (sys/param.h, sys/socket.h, net/if.h, ...)
Hi I'm using VC++ 6.0 SP5 under windows 2k. I tried to compile the net-snmp (sourceforge.net) source. When I try to compile, I get the following errors (missings): Cannot open include file: 'sys/param.h' Cannot open include file: 'sys/socket.h' Cannot open include file: 'net/if.h' Can somebody help me? "Ronald Meier" <meier1@hta-bi.bfh.ch> wrote in message news:bn5atd$bg6$1@rex.ip-plus.net... > I'm using VC++ 6.0 SP5 under windows 2k. I tried to compile the net-snmp > (sourceforge.net) source. > When I try to com...

missing include files (sys/param.h, sys/socket.h, net/if.h, ...)
Hi I'm using VC++ 6.0 SP5 under windows 2k. I tried to compile the net-snmp (sourceforge.net) source. When I try to compile, I get the following errors (missings): Cannot open include file: 'sys/param.h' Cannot open include file: 'sys/socket.h' Cannot open include file: 'net/if.h' Can somebody help me? Thanks Ronald Meier wrote: > Hi > > I'm using VC++ 6.0 SP5 under windows 2k. I tried to compile the net-snmp > (sourceforge.net) source. > When I try to compile, I get the following errors (missings): > > Cannot open include file: ...

redhat 8
hi, i'm running redhat 8 and cannot find the two OS include files sys/dkio.h and sys/dklabel.h. nor can i find references in internet groups that anyone else has this problem. any ideas why this doesn't not come standard with redhat dist, or why i seem to be the only one with this problem (this seems strange to me). and most importantly, where the best place to download this from? thanks in advance, richard boaz On Thu, 02 Sep 2004 10:52:13 +0200, richard wrote: > i'm running redhat 8 and cannot find the two OS include files sys/dkio.h > and sys/dklabel.h. If I r...

include/linux/kernel.h stdarg.h no such file or directory
Hello, I got the following error, when I was trying to do 'make' in madwifi folder. include/linux/kernel.h stdarg.h no such file or directory I tried to search stdarg.h file on my disk, however it was not present. The kernel used was: Linux 2.6.20-1.2320.fc5 Any suggestions? Thanks & with regards, Prakhar. ...

c:\wx\include\wx\platform.h(85): fatal error C1083: Cannot open include file: 'wx/setup.h': No such file or directory
Hi, I can compile the SAMPLES find after my VC .NET converts the .DSW over. I'm going to compile a hello world at http://wiki.wxwidgets.org/wiki.pl?Hello_World It worked the first time. I screwed up the project settings and now I get this error? c:\wx\include\wx\platform.h(85): fatal error C1083: Cannot open include file: 'wx/setup.h': No such file or directory Any good links for me better understand all those project settings? -Thanks! John Doe schrieb: > Hi, > > I can compile the SAMPLES find after my VC .NET converts the .DSW over. > I&...

sys/processor.h sys/loadavg.h in linux?
I have a program I wrote for Solaris. I am trying to port the program to linux. One of the problems I am having is attaining hardware information on the machine. Using sys/processor.h on solaris, I am able to num cpu's and clock speed. Using sys/loadavg.h, I am able to get the load avg u/s/i. I can still get mem, and free mem from sysconf, that is ok. I would rather not parse through /proc/cpuinfo! TIA, ~S ...

include .h files in .h
Hi, Is it a good practice to include other .h files in a .h file? For example, if I have a .h file that uses other two .h files I have two options: 1. include the two used .h files in the .h file that uses them; in the main .cpp file only include the top .h file 2. do not include .h files in any .h file; in the main .cpp file include all the .h files I wonder how bad is the first option. I am currently using the second option and I end-up including 10 .h files and just 1 of them is related to my .cpp file, the rest of 9 are dependencies. Is there any other option? Thanks, Ray Rares...

How to use sys/socket.h functions in windows OS.
Hi All, The following code snippet is a part of s/w which is downloaded from net. While compiling this code I got the following error. ...\..\snmplib\snmpTCPDomain.c(6) : fatal error C1083: Cannot open include file: 'sys/socket.h': No such file or directory NMAKE : fatal error U1077: 'cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return code '0x2' Stop. I just looked into the code and I found out that the problem is raised because of sys/socket.h file. So please help me as how to use the sys/s...

How to use sys/socket.h functions in windows OS.
Hi All, The following code snippet is a part of s/w which is downloaded from net. While compiling this code I got the following error. ...\..\snmplib\snmpTCPDomain.c(6) : fatal error C1083: Cannot open include file: 'sys/socket.h': No such file or directory NMAKE : fatal error U1077: 'cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return code '0x2' Stop. I just looked into the code and I found out that the problem is raised because of sys/socket.h file. So please help me as how to use the sys/s...

Where can I find <X11/Intrinsic.h>,<X11/Xlib.h>,<X11/Xatom.h>,<X11/Xutil.h><unistd.h>include files
I have a problem with these files. #include<unistd.h> #include<X11/Intrinsic.h> #include<X11/Xlib.h> #include<X11/Xatom.h> #include<X11/Xutil.h> Could someone please tell me where to find these files? Thanks in advance for any help that you can give me!! Yours Sincerely, May mmz@alexandria.cc (May) wrote in news:cfcc3917.0311231944.13209842 @posting.google.com: > I have a problem with these files. > > #include<unistd.h> > > #include<X11/Intrinsic.h> > ...

sys/sysinfo.h: No such file or directory --> MACOSX 10.6.4
I need a real help to compile a small program which compiles fine with g++ in Linux machines. However I need to compile-it in my machine with g++. I have this problem and I dont know how to solve it: sys/sysinfo.h: No such file or directory could someone please help me? Thanks! Maura Jauhola <maura.jauhola@gmail.com> wrote: > I need a real help to compile a small program which compiles fine with > g++ in Linux machines. However I need to compile-it in my machine with > g++. I have this problem and I dont know how to solve it: > sys/sysinfo.h: No such file or directory As ...

mshtml.h mshtmlc.h dimm.h dispex.h added
New version features those files. Many others missing? Just send me a list 0YfQtdGC0LLQtdGA0LMsIDEzINGB0LXQvdGC0Y/QsdGA0Y8gMjAxMsKg0LMuLCAyMjozMToxMyBV VEMrNCDQv9C+0LvRjNC30L7QstCw0YLQtdC70YwgamFjb2IgbmF2aWEg0L3QsNC/0LjRgdCw0Ls6 DQo+IE5ldyB2ZXJzaW9uIGZlYXR1cmVzIHRob3NlIGZpbGVzLiBNYW55IG90aGVycyBtaXNzaW5n PyBKdXN0IHNlbmQgbWUgYSBsaXN0DQoNCmlzIHdiZW1pZGwuaCBhZGRlZCB0b28/ ...

Is there some sys dialog for gets directory && file?
can the function BOOL GetOpenFileName( LPOPENFILENAME lpofn // address of structure with initialization data ); return not only existing files but existing directories too? > can the function > > BOOL GetOpenFileName( > LPOPENFILENAME lpofn // address of structure with initialization data > ); > > return not only existing files but existing directories too? nope. However, I know an application that sets the file name to "Filename will be ignored" and just uses the chosen directory. But why don't you use SHBro...

Is there some sys dialog for gets directory && file?
can the function BOOL GetOpenFileName( LPOPENFILENAME lpofn // address of structure with initialization data ); return not only existing files but existing directories too? > can the function > > BOOL GetOpenFileName( > LPOPENFILENAME lpofn // address of structure with initialization data > ); > > return not only existing files but existing directories too? nope. However, I know an application that sets the file name to "Filename will be ignored" and just uses the chosen directory. But why don't you use SHBro...

Web resources about - sys/socket.h & netdb.h No such file or directory - comp.os.msdos.djgpp

Wikipedia:Quick directory - Wikipedia, the free encyclopedia
This page is a handy directory to various locations of interest in Wikipedia. Only dynamic pages should be listed here, no policy pages etc. ...

Telephone directory - Wikipedia, the free encyclopedia
"Phone book" and "White pages" redirect here. For a contact list, see Contact list . For other uses, see White pages (disambiguation) . Subscriber ...

Business Directory Listings: Eight Smart Tips for You to Get Started
If you are considering a business directory listing for your small business, congratulations – you are on the right track. Local SEO, local customers, ...

LinkedIn Lookup iOS app aims to replace your company’s awful intranet employee directory
... continue reading at 9to5Mac . What do you think? Discuss "LinkedIn Lookup iOS app aims to replace your company’s awful intranet employee directory" ...

Atlas Partner Directory Launched
... just for Facebook and Instagram –advertising platform Atlas has one, as well. On that note, Atlas Tuesday introduced the Atlas Partner Directory ...

Slack announces App Directory store
... create more apps for the store, and a new framework called Botkit which should simplify the process of creating apps. The Slack App Directory, ...

The British Library’s ‘Save Our Sounds’ Program Creates Directory of UK Sound Collections
The long-feared deterioration of the world's sound collections is a coming to a head with the British Library's last-ditch initiative called ...

First look: Microsoft Azure Active Directory Domain Services puts it all in the cloud
On Oct. 14, Microsoft announced the preview release of Azure Active Directory Domain Services or, as I like to call it, a domain in a cloud. ...

Security Recruiter Directory
To find the right security job or hire the right candidate, you first need to find the right recruiter. CSO's security recruiter directory is ...

Slack's App Directory proves it's more than just a chatroom
... are about to get a little easier to find and integrate within your team and over 160 of them live within the company's new Slack App Directory. ...

Resources last updated: 1/28/2016 8:33:35 PM