From: "Technophile" Newsgroups: comp.os.msdos.djgpp Subject: sockets under DJGPP ... help! gxx is acting up! Date: 17 Dec 1999 19:45:32 EST Organization: Concentric Internet Services Lines: 37 Message-ID: <83elfc$p2i@journal.concentric.net> NNTP-Posting-Host: ts002d25.gre-sc.concentric.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm trying to teach myself sockets w/ C++, and it's rough going--mainly because DJGPP doesn't come with socket support already. Now, I *do* have RSXNTDJ as well, which has everything I need, but when I put the following into my programs: #include #include #include #include #include #include ... I get an error message from gxx that tells me that it can't find some of them. Here's what it looks like: D:\djgpp\practice>gxx -o test.exe test0022.cc test0022.cc:1: sys/socket.h: No such file or directory (ENOENT) test0022.cc:5: netdb.h: No such file or directory (ENOENT) test0022.cc:6: arpa/inet.h: No such file or directory (ENOENT) Well, the files are all under <..\djgpp\rsxntdj\include\*.*>, but not under DJGPP's default include directory (as defined in ). How can I get the compiler to recognize that it needs to look in RSX's dir instead of the default include? I tried using #include "D:/djgpp/rsxntdj/.../whatever.h" so I could manually define it, but when I do that, it just gives me another error message from the header file proclaiming that it's just declared a header file twice (that being "types.h", which both DJ and RSX have in their respective include directories)--what a pain. If someone could mail me back, I'd very much appreciate it; at this rate, I can't even get off the ground w/ sockets, let alone mess around with it to my satisfaction! ;-> Thank you for your time. .Tek technophile AT email DOT com // (rem. the NOSPAM if you hit ... :o)