Greetings MinGW users!
First off, if you don't want to read all the chatty background material,
skip to the last paragraph for the succinct (terse, short) version of my
I'm fairly new to using MinGW/cygwin for compiling C/C++ source. I've been
trying to get Sang Cho's disassembler (aka Win32disasm) to compile with
MinGW. He (she?) used the dbghelp.dll to extract info from symbol tables. I
can't get this part to compile; I get many errors when trying to include
dbghelp.h which I obtained by installing "Debugging Tools for Windows." I've
spent quite a few hours researching the problem but have found little info
and what I have found is confusing and/or contradictory.
I've considered removing all the references to dbghelp code, but that could
get rather involved and I'd rather avoid doing that if there's a simpler way
(at least for now.)
BTW my goal is to experiment with writing a threading disassembler, so Sang
Cho's disassembler is just a means to that end. I just didn't want to start
from scratch. If anyone can suggest some other, better source package or
project I'd love to hear from you.
>uname -a: MINGW32_NT-5.1 1.0.10(0.46/3/2) 2004-03-15 07:17 i686 unknown
Reading specs from d:/mingw/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--disable-win32-registry --disable-shared --enable-sjlj-exceptions
--enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm
--disable-libgcj-debug --enable-interpreter --enable-hash-synchronization
Thread model: win32
gcc version 3.4.2 (mingw-special)
Windows XP sp2
Debugging Tools for Windows: 22.214.171.124
I'm getting lots of errors trying to compile some older code that uses
dbghelp.dll (Sang Cho's Win32Disassembler).
The problems seem to stem from incompatibilities in the dbghelp.h file
obtained from "Debugging Tools for Windows."
Where can I get a dbghelp.h file to allow this code to compile and run?