www.digitalmars.com         C & C++   DMDScript  

c++ - new to dm - errors in winnt.h

reply "Tom Lowe" <talowe tmynetplus.com> writes:
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
next sibling parent "Walter" <walter digitalmars.com> writes:
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.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
prev sibling next sibling parent Jan Knepper <jan smartsoft.cc> writes:
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
prev sibling parent "Tom Lowe" <talowe tmynetplus.com> writes:
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