Web lists-archives.org

Re: [Mingw-users] Using dbghelp.dll - problems with dbghelp.h






On Thu, Apr 10, 2008 at 7:59 AM, <mingw-users-request@xxxxxxxxxxxxxxxxxxxxx> wrote:

Can't you show us the exact gcc messages and the corresponding lines in
the file?

Brian


Hi Brian,

I discovered that g++ handles the code much better than gcc.
Here's the compiler output:

$ g++ -c debug.c
In file included from debug.c:8:
dbghelp.h:1749: error: `__out_bcount_opt' has not been declared
dbghelp.h:1749: error: expected `,' or `...' before "PVOID"
dbghelp.h:1751: error: ISO C++ forbids declaration of `Size' with no type
dbghelp.h:2832: error: `__in_bcount_opt' has not been declared
dbghelp.h:2832: error: expected `,' or `...' before "PBYTE"
dbghelp.h:2834: error: ISO C++ forbids declaration of `Size' with no type
dbghelp.h:2844: error: `__in_bcount_opt' has not been declared
dbghelp.h:2844: error: expected `,' or `...' before "PBYTE"
dbghelp.h:2846: error: ISO C++ forbids declaration of `Size' with no type
dbghelp.h:2856: error: `__in_bcount_opt' has not been declared
dbghelp.h:2856: error: expected `,' or `...' before "PBYTE"
dbghelp.h:2858: error: ISO C++ forbids declaration of `Size' with no type
debug.c: In function `int getDebugInfo(char*)':
debug.c:110: error: invalid conversion from `void*' to `unsigned int*'
debug.c:111: error: invalid conversion from `void*' to `char*'
debug.c:112: error: invalid conversion from `void*' to `Sym*'
debug.c:165: error: invalid conversion from `BOOL (*)(TCHAR*, ULONG, ULONG, void*)' to `BOOL (*)(const CHAR*, ULONG, ULONG, void*)'
debug.c:165: error:   initializing argument 3 of `BOOL SymEnumerateSymbols(void*, ULONG, BOOL (*)(const CHAR*, ULONG, ULONG, void*), void*)'

Thanks!
Doug
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users