| | | | Browse by category |
Article ID: 1201
Last updated: 07 Feb, 2008
Problem
-I. -nologo -GX -GR /Zm400 /MD /O2 -D_RWCONFIG=12d -DRW_XMLOL_DLL -DRW_XMLOL_
BUILD -c WeatherSummary.cpp
WeatherSummary.cpp
c:\roguewave\leif\rw/tools/datetime.h(76) : error C2258: illegal pure syntax, must be '= 0'
c:\roguewave\leif\rw/tools/datetime.h(76) : error C2252: 'jul1901
' : pure specifier can only be specified for functions
c:\roguewave\leif\rw/tools/datetime.h(78) : error C2258: illegal
pure syntax, must be '= 0'
c:\roguewave\leif\rw/tools/datetime.h(78) : error C2252: 'midnigh
tJul1901' : pure specifier can only be specified for functions
c:\roguewave\leif\rw/tools/datetime.h(82) : error C2258: illegal
pure syntax, must be '= 0'
c:\roguewave\leif\rw/tools/datetime.h(82) : error C2252: 'millise
csInSec' : pure specifier can only be specified for functions
c:\roguewave\leif\rw/tools/datetime.h(83) : error C2258: illegal
pure syntax, must be '= 0'
c:\roguewave\leif\rw/tools/datetime.h(83) : error C2252: 'millise
csInMin' : pure specifier can only be specified for functions
c:\roguewave\leif\rw/tools/datetime.h(84) : error C2258: illegal
pure syntax, must be '= 0'
c:\roguewave\leif\rw/tools/datetime.h(84) : error C2252: 'millise
csInHour' : pure specifier can only be specified for functions
c:\roguewave\leif\rw/tools/datetime.h(85) : error C2258: illegal
pure syntax, must be '= 0'
Cause
This problem occurs because the compiler environment is not set up correctly.
Action
Loading and attempting to build a LEIF-generated workspace results in the following compile error:
cl -Ic:\roguewave\leif -Ic:\roguewave\leif-I. -nologo -GX -GR /Zm400 /MD /O2 -D_RWCONFIG=12d -DRW_XMLOL_DLL -DRW_XMLOL_
BUILD -c WeatherSummary.cpp
WeatherSummary.cpp
c:\roguewave\leif\rw/tools/datetime.h(76) : error C2258: illegal pure syntax, must be '= 0'
c:\roguewave\leif\rw/tools/datetime.h(76) : error C2252: 'jul1901
' : pure specifier can only be specified for functions
c:\roguewave\leif\rw/tools/datetime.h(78) : error C2258: illegal
pure syntax, must be '= 0'
c:\roguewave\leif\rw/tools/datetime.h(78) : error C2252: 'midnigh
tJul1901' : pure specifier can only be specified for functions
c:\roguewave\leif\rw/tools/datetime.h(82) : error C2258: illegal
pure syntax, must be '= 0'
c:\roguewave\leif\rw/tools/datetime.h(82) : error C2252: 'millise
csInSec' : pure specifier can only be specified for functions
c:\roguewave\leif\rw/tools/datetime.h(83) : error C2258: illegal
pure syntax, must be '= 0'
c:\roguewave\leif\rw/tools/datetime.h(83) : error C2252: 'millise
csInMin' : pure specifier can only be specified for functions
c:\roguewave\leif\rw/tools/datetime.h(84) : error C2258: illegal
pure syntax, must be '= 0'
c:\roguewave\leif\rw/tools/datetime.h(84) : error C2252: 'millise
csInHour' : pure specifier can only be specified for functions
c:\roguewave\leif\rw/tools/datetime.h(85) : error C2258: illegal
pure syntax, must be '= 0'
(truncated)
Cause
This problem occurs because the compiler environment is not set up correctly.
Action
There are a couple of options for resolving this problem.
The quickest way to resolve the problem is to invoke the compiler from the DOS window you used to generate the code. This will ensure that the same environment settings are propogated to the compiler.
Another option is to update your environment settings via the control panel. Setting your environment variables to mirror the settings you have in the active DOS window that was used to generate the code.
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 1201
Last updated: 07 Feb, 2008
Revision: 1
Views: 2156
Posted: 01 Jan, 2000 by
Dean J.
Updated: 07 Feb, 2008 by
Dean J.
Others in this category
Powered by KBPublisher (Knowledge base software)