bug in version 10.1.020

bug in version 10.1.020

hi there, I've just tried the latest version (10.1.020), whenever I include STL header in the source code, it will fail, anyone can confirm this or only my problem? is there any workaround? thanks

sample code:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include

void main()
{
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

and the error is:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEfunctional(1053): error: a partial specialization of a class template must be declared in the namespace of which it is a member
class _Move_operation_category >
^

C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEmemory(1563): error: a partial specialization of a class template must be declared in the namespace of which it is a member
class _Move_operation_category >
^

C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEmemory(1688): error: a partial specialization of a class template must be declared in the namespace of which it is a member
class _Move_operation_category >
^
compilation aborted for 1.cpp (code 2)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

17 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

how did you setup your build env? are you building within VS2008? what edition is your vs2008?

I don't see the problem from both cmd window and within VS2008 prof.

Check that everything has been rebuilt with the switch /Qvc9. The switch should be present in icl.cfg, but it could be over-ridden by a compile command from a previous VS. ICL has to make adjustments for each family of Microsoft STL.

@Jennifer LJ,
-----------------------------------------------------------------------------------------
ICPP_COMPILER10=C:Program FilesIntelCompilerC++10.1.020

INCLUDE=C:Program FilesIntelCompilerC++10.1.020Ia32Include;C:Program FilesMicrosoft Visual Studio 9.0VCATLMFCINCLUDE;C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDE;C:Program FilesMicrosoft SDKsWindowsv6.0Ainclude;
-----------------------------------------------------------------------------------------
I've tried in both vs2008 ide and command prompt too, the above is the setting in the command prompt.
I'm using vs2008 professional.

@tim18,
I'm sure /Qvc9 is specified in icl.cfg and when I tried to compile, I didn't specify any parameters.

btw, I'm using a fresh install of vista 32-bit, and only vs2008 and intel compiler are installed as the development tools.

Looks like you're using the icl from ealier version, not 10.1.020. Try "where icl.exe".

icl -v

Intel C++ Compiler for applications running on IA-32, Version 10.1 Build 20080212 Package ID: w_cc_p_10.1.020

no, I'm sure it's the latest one.

the result of "where icl.exe" is:
C:Program FilesIntelCompilerC++10.1.020IA32Binicl.exe

and "icl -v" returns:

Intel C++ Compiler for applications running on IA-32, Version 10.1 Build 20080212 Package ID: w_cc_p_10.1.020

which is exactly the same as yours. I really have no clue why I failed to compile.

can you paste your icl.cfg/iclvars.bat content here? and you get the cmd window from the [start->all programs->Intel software development tools->Intel C++ compiler 10.1.020->build environment for IA32 applications], right?

Hello,

i have the same problem.

------------------------------------------

@echo off

Rem Intel C++ Compiler for applications running IA-32

echo.

echo Intel C++ Compiler for applications running IA-32, Version 10.1.020

echo Copyright (C) 1985-2007 Intel Corporation. All rights reserved.

echo.

@call "E:Program FilesMicrosoft Visual Studio 9.0VCBinVcvars32.bat"

title Intel C++ Compiler for applications running IA-32, Version 10.1.020

echo.

SET ICPP_COMPILER10=E:Program FilesIntelCompilerC++10.1.020

SET INTEL_SHARED=C:Program FilesCommon FilesIntelShared Files

SET INTEL_LICENSE_FILE=C:Program FilesCommon FilesIntelLicenses

SET PATH=%ICPP_COMPILER10%Ia32Bin;%INTEL_SHARED%Ia32Bin;%PATH%

SET LIB=%ICPP_COMPILER10%Ia32Lib;%LIB%

SET INCLUDE=%ICPP_COMPILER10%Ia32Include;%INCLUDE%

------------------------------------------

# This Configuration file may be used for additional switches

# Enable Microsoft Visual C++* .NET 9.0 compatibility

-Qvc9

# Path to Microsoft Visual C++* .NET 9.0 linker

-Qlocation,link,"E:Program FilesMicrosoft Visual Studio 9.0VCBin"

# *Other names and brands may be claimed as the property of others

------------------------------------------

cmd window from start menu of Intel C++ compiler 10.1.020 is normal.

my icl.cfg and iclvars.bat are the same as 666khronos as in the above post, I didn't modify anything, just using the default.

and yes, I'm using the command prompt from [start->all programs->Intel software development tools->Intel
C++ compiler 10.1.020->build environment for IA32 applications].

The only difference is that you installed the VS2008 on the "E" drive. Could you check if you have "tmp" or "temp" defined?

And can you send me the very first errors? or the above ones are very first ones?

And please post the output of "set" if possible.

yes, the top post is the very first errors.
sorry that I didn't mention that my installation are all in drive C instead of E like above.
and here's my complete set:
-------------------------------------------------------------------------------------
ALLUSERSPROFILE=C:ProgramData
APPDATA=C:UsersAcroAppDataRoaming
CommonProgramFiles=C:Program FilesCommon Files
COMPUTERNAME=ACRUS
ComSpec=C:Windowssystem32cmd.exe
DevEnvDir=C:Program FilesMicrosoft Visual Studio 9.0Common7IDE
DFSTRACINGON=FALSE
FP_NO_HOST_CHECK=NO
Framework35Version=v3.5
FrameworkDir=C:WindowsMicrosoft.NETFramework
FrameworkVersion=v2.0.50727
HOMEDRIVE=C:
HOMEPATH=UsersAcro
ICPP_COMPILER10=C:Program FilesIntelCompilerC++10.1.020
INCLUDE=C:Program FilesIntelCompilerC++10.1.020Ia32Include;C:Program Fil
esMicrosoft Visual Studio 9.0VCATLMFCINCLUDE;C:Program FilesMicrosoft Visu
al Studio 9.0VCINCLUDE;C:Program FilesMicrosoft SDKsWindowsv6.0Ainclude;

INTEL_LICENSE_FILE=C:Program FilesCommon FilesIntelLicenses
INTEL_SHARED=C:Program FilesCommon FilesIntelShared Files
LIB=C:Program FilesIntelCompilerC++10.1.020Ia32Lib;C:Program FilesMicro
soft Visual Studio 9.0VCATLMFCLIB;C:Program FilesMicrosoft Visual Studio 9.
0VCLIB;C:Program FilesMicrosoft SDKsWindowsv6.0Alib;
LIBPATH=C:WindowsMicrosoft.NETFrameworkv3.5;C:WindowsMicrosoft.NETFramewo
rkv2.0.50727;C:Program FilesMicrosoft Visual Studio 9.0VCATLMFCLIB;C:Prog
ram FilesMicrosoft Visual Studio 9.0VCLIB;
LOCALAPPDATA=C:UsersAcroAppDataLocal
LOGONSERVER=ACRUS
MASM=C:ToolsMasm
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:Program FilesIntelCompilerC++10.1.020Ia32Bin;C:Program FilesComm
on FilesIntelShared FilesIa32Bin;C:Program FilesMicrosoft Visual Studio 9.
0Common7IDE;C:Program FilesMicrosoft Visual Studio 9.0VCBIN;C:Program Fil
esMicrosoft Visual Studio 9.0Common7Tools;C:WindowsMicrosoft.NETFramework
v3.5;C:WindowsMicrosoft.NETFrameworkv2.0.50727;C:Program FilesMicrosoft Vi
sual Studio 9.0VCVCPackages;C:Program FilesMicrosoft SDKsWindowsv6.0Ain
;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C: oolscommands;c: o
olsunxutils;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f02
ProgramData=C:ProgramData
ProgramFiles=C:Program Files
PROMPT=$P$G
PUBLIC=C:UsersPublic
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:Windows
TEMP=C:UsersAcroAppDataLocalTemp
TMP=C:UsersAcroAppDataLocalTemp
TRACE_FORMAT_SEARCH_PATH=NTREL202.ntdev.corp.microsoft.com4F18C3A5-CA09-4DBD-
B6FC-219FDD4C6BE0TraceFormat
USERDOMAIN=Acrus
USERNAME=Acro
USERPROFILE=C:UsersAcro
VCINSTALLDIR=C:Program FilesMicrosoft Visual Studio 9.0VC
VS90COMNTOOLS=C:Program FilesMicrosoft Visual Studio 9.0Common7Tools
VSINSTALLDIR=C:Program FilesMicrosoft Visual Studio 9.0
windir=C:Windows
WindowsSdkDir=C:Program FilesMicrosoft SDKsWindowsv6.0A
-------------------------------------------------------------------------------------

could you try "icl /QH /c t.cpp"?

Here is my output:

>>icl /QH /c m.cpp > inc.txt
Intel C++ Compiler for applications running on IA-32, Version 10.1 Build 2
0080212 Package ID: w_cc_p_10.1.020
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.

C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEmap
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExtree
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEfunctional
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcstdlib
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEyvals.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEsal.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEvadefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEuse_ansi.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEstdlib.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDElimits.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExstring
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExmemory
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcstdlib
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEexception
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExstddef
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcstddef
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEyvals.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEstddef.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEeh.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEmalloc.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDE
ew
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEexception
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExutility
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEclimits
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEyvals.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDElimits.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEutility
C:Program Fi
lesMicrosoft Visual Studio 9.0VCINCLUDEiosfwd
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcstdio
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEyvals.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEstdio.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEswprintf.inl
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEvadefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcstring
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEyvals.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEstring.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcwchar
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEyvals.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEwchar.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEwtime.inl
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExstddef
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdbg.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdbg.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEmemory
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEiterator
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExutility
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExmemory
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEstdexcept
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEexception
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExstring

>>

This is my contents of inc.txt

test.cpp

E:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEfunctional(1053): error: a partial specialization of a class template must be declared in the namespace of which it is a member

class _Move_operation_category >

^

E:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEmemory(1563): error: a partial specialization of a class template must be declared in the namespace of which it is a member

class _Move_operation_category >

^

E:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEmemory(1688): error: a partial specialization of a class template must be declared in the namespace of which it is a member

class _Move_operation_category >

^

test.cpp(3): warning #1079: return type of function "main" must be "int"

void main()

^

//////////////////////////////

output in window:

............... I can not bring the whole list because of its content ...............

E:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExawrap2

E:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExxbind0

E:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExawrap2

E:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExxbind0

E:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExawrap2

E:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExxbind0

..........

E:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEexception

E:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExstring

compilation aborted for test.cpp (code 2)

sorry, the includes list seems to be too long to list here, roughly, like below:
------------------------------------------------------------------------------------------
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEmap
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExtree
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEfunctional
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcstdlib
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEyvals.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEsal.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEvadefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEuse_ansi.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEstdlib.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDElimits.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExstring
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExmemory
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcstdlib
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEexception
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExstddef
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcstddef
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEyvals.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEstddef.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEeh.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEmalloc.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEcrtdefs.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDE
ew
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEexception
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExutility
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEclimits
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEyvals.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDElimits.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEutility
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEiosfwd
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDE
cstdio
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEyvals.h
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEstdio.h
..........
..........
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEmemory
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEiterator
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExutility
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExmemory
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEexception
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDE ypeinfo
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEstdexcept
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDEexception
C:Program FilesMicrosoft Visual Studio 9.0VCINCLUDExstring
------------------------------------------------------------------------------------------

or you want the complete list?

Not sure why your list is so long. It might be the problem. Could you pasteyour version of cl here?

What is the encoding format of the t.cpp? icl doesn't support UTF-16, but does support ANSII and UTF-8.

The problem was resolved after fully reinstall the system, only now during installation of compiler I allowed him to add directory to PATH.

Thanks a lot!

my cl version is 15.00.21022.08, and the t.cpp is ascii encoded.

I just recall that I have installed the visual C++ 2008 feature pack beta (http://www.microsoft.com/downloads/details.aspx?FamilyId=D466226B-8DAB-4...), could this be the problem?
if so I'm sorry for the false report and thanks for the help.

Leave a Comment

Please sign in to add a comment. Not a member? Join today