Date: Wed, 10 Mar 1999 16:37:45 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Aaronn Connor cc: djgpp AT delorie DOT com Subject: Re: runtime exception in RSXNTDJ In-Reply-To: <36e65965.0@news2.uswest.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 10 Mar 1999, Aaronn Connor wrote: > I'm trying to write a winsock program using DJGPP(gcc 2.8.1) and RSXNTDJ > v1.3.1 > > but every time i use an API call i get an error box saying: > > Exception at 0x00000009 > Application got SIGSEGV This usually means that the executable couldn't find some function it needed to call. That function should have either linked in statically, when you linked your program, or dynamically, at run time, by loading some DLL. Failing that, the address of that function remains zeroed (or very close to zero, like 9 in your case) and GPFaults. So either you forgot to add some library to the link command line, or some DLL is outside your PATH. Using the original DJGPP version of ld.exe is one way of getting a list of all functions that aren't linked statically (the version of ld.exe which comes with RSXNTDJ silently ignores them, assuming they will be resolved at run time).