Message-ID: <000901be5dd5$c3db50e0$fb02e8d4@default> From: "Crousto" To: "Eli Zaretskii" Cc: Subject: Re: "SIGSEGV error" with WinAllegro+RSXNTDJ Date: Sun, 21 Feb 1999 21:00:15 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com > >On Sun, 14 Feb 1999, Crousto wrote: > >> But when I launch the exe, I got this error 'Exception at 0x00000009, >> application got signal SIGSEGV'. What does it mean, and what could be wrong? > >In your case, since the address (0x00000009 in the message you cite) >is very close to zero, the most probable cause is that your program >calls some functions which aren't present neither in the libraries you >put on the link command line nor in the DLLs that you have installed. >The FAQ explains in section 3.6 that the linker (ld.exe) supplied with >RSXNTDJ doesn't print any messages if some of the functions are >missing at link time. > >The first thing to look for is some library that you failed to mention >in the link command line. One way to do that is to find out which >function is missing, and then use the `nm' utility to find the library >where that function lives. To find out which function is missing, use >the DJGPP's version of ld.exe to link the program, and look up every >function about which the linker complains as being ``unresolved'' or >``undefined''. > Thanks for help! I've linked with the DJGPP's 'ld', and it report some unresolved vars in stdcx.a : __dj_ctype_flags, __dj_stdin, __dj_stdout (of course, my program crash when it uses the C++ streams : cout, cin and files). The 'nm' utility report those variables in libc.a. But even if I link this file, the same errors come back. I think that it's because the linker uses RSXNTDJ's libc.a, which doesn't contain the __dj_... vars. If I link DJGPP's libc.a, the previous errors are resolved, but I get some new unresolved vars (like _entry2). So, which LIB directory must be used? Should the linker have access only to RSXNTDJ .a files, or also to DJGPP's? And which .a does 'GCC -Zwin32 -Zmt' always link for a C++ code? Crousto crousto AT infonie DOT be