www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

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

↑ ↓ ← "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
→ "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

 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

 '_cdecl' and 'QUERYHANDLER'
 Fatal error: too many errors
 --- errorlevel 1

 ** error 1 ** deleting ..\lib\obj\DM\ReleaseD\dll_main.obj

Apr 16 2002
→ 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
→ "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