c++ - new to dm - errors in winnt.h
- Tom Lowe (30/30) Apr 16 2002 Just downloaded Dm compiler, trying to port stlport 4.5.3. Get the
- Walter (14/43) Apr 16 2002 The following program:
- Jan Knepper (4/34) Apr 16 2002 This is too little information.
- Tom Lowe (4/4) Apr 16 2002 OOps, had -A on in sc.ini. Windows headers and strict ANSI don't mix.
Just downloaded Dm compiler, trying to port stlport 4.5.3. Get the following errors in winnt.h. Perhaps it is a simple compiler switch or define I need. (Win98) Thanks for any help, Tom Lowe talowe mynetplus.com sc -I.;..\stlport;d:\dm\include;d:\dm\include\win32 -c -WD -D_RTLDLL -D_WIN3 2 -D_DLL -D_STLP_DESIGNATED_DLL -o+space .\dll_main.cpp _inline PVOID GetFiberData( void ) { __asm { ^ d:\dm\include\win32\WINNT.H(1267) : Error: missing decl-specifier-seq for declaration of '_inline' } FLOATING_SAVE_AREA; ^ d:\dm\include\win32\WINNT.H(1319) : Error: missing decl-specifier-seq for declaration of 'FLOATING_SAVE_AREA' typedef FLOATING_SAVE_AREA *PFLOATING_SAVE_AREA; ^ d:\dm\include\win32\WINNT.H(1321) : Error: '=', ';' or ',' expected } ^ d:\dm\include\win32\WINDEF.H(308) : Error: identifier or '( declarator )' expected QUERYHANDLER (LPVOID keycontext, PVALCONTEXT val_list, DWORD num_vals, ^ d:\dm\include\win32\WINREG.H(89) : Error: missing ',' between declaration of '_cdecl' and 'QUERYHANDLER' Fatal error: too many errors --- errorlevel 1 ** error 1 ** deleting ..\lib\obj\DM\ReleaseD\dll_main.obj
Apr 16 2002
The following program: #include <stdio.h> #include <string.h> #include <assert.h> #include <windows.h> compiled with: sc -I\dm\stlport;\dm\include;\dm\include\win32 -c -WD -D_RTLDLL -D_WIN32 -D_ DLL -D_STLP_DESIGNATED_DLL -o+space test.cpp compiles without error. I can't reproduce the problem you're having. -Walter "Tom Lowe" <talowe tmynetplus.com> wrote in message news:a9hja9$sq4$1 digitaldaemon.com...Just downloaded Dm compiler, trying to port stlport 4.5.3. Get the following errors in winnt.h. Perhaps it is a simple compiler switch or define I need. (Win98) Thanks for any help, Tom Lowe talowe mynetplus.comsc -I.;..\stlport;d:\dm\include;d:\dm\include\win32 -c -WD -D_RTLDLL -D_WIN32 -D_DLL -D_STLP_DESIGNATED_DLL -o+space .\dll_main.cpp _inline PVOID GetFiberData( void ) { __asm { ^ d:\dm\include\win32\WINNT.H(1267) : Error: missing decl-specifier-seq for declaration of '_inline' } FLOATING_SAVE_AREA; ^ d:\dm\include\win32\WINNT.H(1319) : Error: missing decl-specifier-seq for declaration of 'FLOATING_SAVE_AREA' typedef FLOATING_SAVE_AREA *PFLOATING_SAVE_AREA; ^ d:\dm\include\win32\WINNT.H(1321) : Error: '=', ';' or ',' expected } ^ d:\dm\include\win32\WINDEF.H(308) : Error: identifier or '( declarator )' expected QUERYHANDLER (LPVOID keycontext, PVALCONTEXT val_list, DWORD num_vals, ^ d:\dm\include\win32\WINREG.H(89) : Error: missing ',' between declarationof'_cdecl' and 'QUERYHANDLER' Fatal error: too many errors --- errorlevel 1 ** error 1 ** deleting ..\lib\obj\DM\ReleaseD\dll_main.obj
Apr 16 2002
This is too little information. A little examples source reproducing this problem would help. Jan Tom Lowe wrote:Just downloaded Dm compiler, trying to port stlport 4.5.3. Get the following errors in winnt.h. Perhaps it is a simple compiler switch or define I need. (Win98) Thanks for any help, Tom Lowe talowe mynetplus.com sc -I.;..\stlport;d:\dm\include;d:\dm\include\win32 -c -WD -D_RTLDLL -D_WIN3 2 -D_DLL -D_STLP_DESIGNATED_DLL -o+space .\dll_main.cpp _inline PVOID GetFiberData( void ) { __asm { ^ d:\dm\include\win32\WINNT.H(1267) : Error: missing decl-specifier-seq for declaration of '_inline' } FLOATING_SAVE_AREA; ^ d:\dm\include\win32\WINNT.H(1319) : Error: missing decl-specifier-seq for declaration of 'FLOATING_SAVE_AREA' typedef FLOATING_SAVE_AREA *PFLOATING_SAVE_AREA; ^ d:\dm\include\win32\WINNT.H(1321) : Error: '=', ';' or ',' expected } ^ d:\dm\include\win32\WINDEF.H(308) : Error: identifier or '( declarator )' expected QUERYHANDLER (LPVOID keycontext, PVALCONTEXT val_list, DWORD num_vals, ^ d:\dm\include\win32\WINREG.H(89) : Error: missing ',' between declaration of '_cdecl' and 'QUERYHANDLER' Fatal error: too many errors --- errorlevel 1 ** error 1 ** deleting ..\lib\obj\DM\ReleaseD\dll_main.obj
Apr 16 2002
OOps, had -A on in sc.ini. Windows headers and strict ANSI don't mix. Thanks for the quick responses. Tom Lowe talowe mynetplus.com
Apr 16 2002