Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 16, 2002 new to dm - errors in winnt.h | ||||
---|---|---|---|---|
| ||||
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 |
April 16, 2002 Re: new to dm - errors in winnt.h | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tom Lowe | 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 > > > |
April 16, 2002 Re: new to dm - errors in winnt.h | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tom Lowe | 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
|
Copyright © 1999-2021 by the D Language Foundation