I am trying to sync w/ native crtdbg.h file, which defines:
| typedef void (__cdecl *_CRT_DUMP_CLIENT) (void *, size_t);
This doesn't compile with my gcc:
| gcc -c -I. -I. -I../../../include -I../../../include -I../../../include/msvcrt -I./.. -D_REENTRANT -fPIC -Wall -pipe | -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o headers.o headers.c | In file included from headers.c:35: | ../../../include/msvcrt/crtdbg.h:52: parse error before '*' token
Does anyone know a way to workaround this?
Saulius Krasuckas wrote:
I am trying to sync w/ native crtdbg.h file, which defines:
| typedef void (__cdecl *_CRT_DUMP_CLIENT) (void *, size_t);
This doesn't compile with my gcc:
| gcc -c -I. -I. -I../../../include -I../../../include -I../../../include/msvcrt -I./.. -D_REENTRANT -fPIC -Wall -pipe | -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o headers.o headers.c | In file included from headers.c:35: | ../../../include/msvcrt/crtdbg.h:52: parse error before '*' token
Does anyone know a way to workaround this?
I compiled native crtdbg.h with gcc 3.3.x Just fine. with: #define __cdecl __attribute__((__cdecl__))
what is the version of your gcc
Free Life Boaz
Saulius Krasuckas wrote:
I am trying to sync w/ native crtdbg.h file, which defines:
| typedef void (__cdecl *_CRT_DUMP_CLIENT) (void *, size_t);
This doesn't compile with my gcc:
| gcc -c -I. -I. -I../../../include -I../../../include -I../../../include/msvcrt -I./.. -D_REENTRANT -fPIC -Wall -pipe | -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith -g -O2 -o headers.o headers.c | In file included from headers.c:35: | ../../../include/msvcrt/crtdbg.h:52: parse error before '*' token
Does anyone know a way to workaround this?
I compiled native crtdbg.h with gcc 3.3.x Just fine. with: #define __cdecl __attribute__((__cdecl__))
what is the version of your gcc
Free Life Boaz
* On Tue, 19 Jul 2005, Boaz Harrosh wrote:
- Saulius Krasuckas wrote:
I am trying to sync w/ native crtdbg.h file, which defines: | typedef void (__cdecl *_CRT_DUMP_CLIENT) (void *, size_t); This doesn't compile with my gcc:
I compiled native crtdbg.h with gcc 3.3.x Just fine. with: #define __cdecl __attribute__((__cdecl__))
what is the version of your gcc
Mine is:
| gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
but that doesn't matter, I think. I didn't understand given error message properly, so I didn't check the headers to include __cdecl define. Now with #include "windef.h" the code compiles fine. Thank you.