Mail Archives: djgpp/1999/03/10/09:39:33
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).
- Raw text -