incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Pevtsov" <Ant...@moscow.vdiweb.com>
Subject RE: icl /D problem (was Re: Solution generartion script for Intel 9.0 compiler)
Date Thu, 15 Dec 2005 16:50:53 GMT
The cause of the different issues is the the different versions of the
Intel C++ 9.0 compiler.

I have 
Intel(R) C++ Compiler for 32-bit applications, Version 9.0    Build 
20051020Z Package ID: W_CC_C_9.0.019

W_CC_C_9.0.019 compiler version has no problem with spaces in defines:
/D FUN="strchr((char*)0,0)" t.cpp compiles OK. But it has problems with
'*' symbol.


And Martin has
Intel(R) C++ Compiler for 32-bit applications, Version 9.0    Build 
20051020Z Package ID: W_CC_C_9.0.025


This version seems to be more recent. I'll change my to this one.


With best wishes,
Anton Pevtsov


-----Original Message-----
From: Martin Sebor [mailto:sebor@roguewave.com]
Sent: Thursday, December 15, 2005 02:24
To: stdcxx-dev@incubator.apache.org
Subject: icl /D problem (was Re: Solution generartion script for Intel
9.0 compiler)


Anton Pevtsov wrote:
[...]
> 3) The Intel Compiler doesn't allow the '*' symbol in defines in the 
> compiler command line. For example, when you passes to the compiler 
> something like /D "FUN=strchr((char*)0,0)" the compiler just crashes. 
> I changed the configure.wsf script and fun_present_check.cpp to avoid 
> passing '*'. These changes don't affect the MSVC version.

I had no problem specifying /DFUN="strchr((char*)0,0)" on the command
line. The compiler only complained when I had a space between /D and the
argument (see below). Since that's an incompatibility between cl and icl
I'll open an issue with Intel. Other than that, we should be okay as
long as we avoid the space (icl doesn't even document that the space is
allowed).

Martin


$    cat t.cpp \
   && icl /DFUN="strchr((char*)0,0)" t.cpp \
   && icl /D FUN="strchr((char*)0,0)" t.cpp
#include <string.h>

int main ()
{
     FUN;
}


Intel(R) C++ Compiler for 32-bit applications, Version 9.0    Build 
20051020Z Package ID: W_CC_C_9.0.025
Copyright (C) 1985-2005 Intel Corporation.  All rights reserved.

t.cpp
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

-out:t.exe
t.obj
Intel(R) C++ Compiler for 32-bit applications, Version 9.0    Build 
20051020Z Package ID: W_CC_C_9.0.025
Copyright (C) 1985-2005 Intel Corporation.  All rights reserved.

t.cpp
icl: error: could not write to argument file 
'c:\DOCUME~1\sebor\LOCALS~1\Temp\4922.arg'
icl: error: could not write to argument file 
'c:\DOCUME~1\sebor\LOCALS~1\Temp\4922.arg'
Command-line error: too many arguments on command line

compilation aborted for t.cpp (code 4)

Mime
View raw message