View Single Post
Re: How to debug linux crashes
Old
  (#36)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: How to debug linux crashes - 25-01-2006

It has to be incorrect because drmingw should see somewhere the place of compiled *.o files or anything produced during compilation process to get some additional info which can't be only in binary *dll or *so. Also MSVC needs something more to make a good debug (some *pdb or *lib file produced during compilation). What exactly drmingw needs to show the line number of code where it crashes? I saw on some Fonseca'a page his drmingw should show the line number and file number (for example dll.cpp line112) - but I couldn't find nowhere what exactly this debugger needs to take this info. I believe -g3 parameter for compilation isn't only one thing drmingw needs.
Anyway - maybe You remember what exactly did You need to change in Your bot_sounds.cpp to get it working correctly with mingw?
Maybe at least show me which mistakes / errors in code M$VC can "forgive" but mingw doesn't?

When I compile with M$ Visual C++ 2005 Express it says some warnings like use _CRT_NO_DEPRECATE to prevent some warnings and it tryes to replace some C++ commands which it says might to be unsafe by some better one. Also it says some ARRAYSIZE is defined twice - once in some metamod (or HLSDK) *.h file and second time in winnt.h (M$ Platform SDK).

What currently the GCC version is recommended to use with HLSDK prepared by metamod dev team (HLSDK 2.3 p3)?
I'm using 3.4.2 (which AMX dev team is using a long time without any problem).
  
Reply With Quote