New Intel C++ Compiler v10.1.020

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
David Dahlem
Posts: 900
Joined: Wed Mar 08, 2006 9:06 pm

New Intel C++ Compiler v10.1.020

Post by David Dahlem »

I downloaded the 30 day trial of the new Intel C++ Compiler version 10.1.020 available here ...

https://registrationcenter.intel.com/Re ... ister.aspx

It's supposed to support the IDE integration of VS2008, but doesn't seem to work with my 2008 express version. So i'm trying to learn how to use the Intel compiler on the command line. I admit i am almost a complete dummy with compilers, and especially the command line.

I have managed to compile a simple Hello.cpp file on the Intel command line with this command - icl Hello.cpp. Could someone help a compiler idiot with the commands for multiple source files?

Thanks
Dave
hristo

Re: New Intel C++ Compiler v10.1.020

Post by hristo »

David Dahlem wrote:I downloaded the 30 day trial of the new Intel C++ Compiler version 10.1.020 available here ...

https://registrationcenter.intel.com/Re ... ister.aspx

It's supposed to support the IDE integration of VS2008, but doesn't seem to work with my 2008 express version. So i'm trying to learn how to use the Intel compiler on the command line. I admit i am almost a complete dummy with compilers, and especially the command line.

I have managed to compile a simple Hello.cpp file on the Intel command line with this command - icl Hello.cpp. Could someone help a compiler idiot with the commands for multiple source files?

Thanks
Dave
Have you tried qmake? (http://trolltech.com)
(You can download a free version of Qt that will include qmake and then you can use it to create Makefiles, rather easily -- even if you aren't using the the Qt libraries.)


Regards,
Hristo
User avatar
David Dahlem
Posts: 900
Joined: Wed Mar 08, 2006 9:06 pm

Re: New Intel C++ Compiler v10.1.020

Post by David Dahlem »

hristo wrote:
David Dahlem wrote:I downloaded the 30 day trial of the new Intel C++ Compiler version 10.1.020 available here ...

https://registrationcenter.intel.com/Re ... ister.aspx

It's supposed to support the IDE integration of VS2008, but doesn't seem to work with my 2008 express version. So i'm trying to learn how to use the Intel compiler on the command line. I admit i am almost a complete dummy with compilers, and especially the command line.

I have managed to compile a simple Hello.cpp file on the Intel command line with this command - icl Hello.cpp. Could someone help a compiler idiot with the commands for multiple source files?

Thanks
Dave
Have you tried qmake? (http://trolltech.com)
(You can download a free version of Qt that will include qmake and then you can use it to create Makefiles, rather easily -- even if you aren't using the the Qt libraries.)


Regards,
Hristo
How will that help me compile from the command line? As i said, i'm a total dummy about compiling. :-)

Anyway, thanks for the tip, i'll check it out.

Regards
Dave
User avatar
Roman Hartmann
Posts: 295
Joined: Wed Mar 08, 2006 8:29 pm

Re: New Intel C++ Compiler v10.1.020

Post by Roman Hartmann »

Hi David,
did you try to type something like 'icl *.cpp'?

For me this works with GNU gcc and with the free Microsoft compiler as well.

best regards
Roman
hristo

Re: New Intel C++ Compiler v10.1.020

Post by hristo »

David Dahlem wrote:
hristo wrote:
David Dahlem wrote:I downloaded the 30 day trial of the new Intel C++ Compiler version 10.1.020 available here ...

https://registrationcenter.intel.com/Re ... ister.aspx

It's supposed to support the IDE integration of VS2008, but doesn't seem to work with my 2008 express version. So i'm trying to learn how to use the Intel compiler on the command line. I admit i am almost a complete dummy with compilers, and especially the command line.

I have managed to compile a simple Hello.cpp file on the Intel command line with this command - icl Hello.cpp. Could someone help a compiler idiot with the commands for multiple source files?

Thanks
Dave
Have you tried qmake? (http://trolltech.com)
(You can download a free version of Qt that will include qmake and then you can use it to create Makefiles, rather easily -- even if you aren't using the the Qt libraries.)


Regards,
Hristo
How will that help me compile from the command line? As i said, i'm a total dummy about compiling. :-)

Anyway, thanks for the tip, i'll check it out.

Regards
Dave
David,
qmake is a tool that generates Makefiles (for cli) for multiple compilers and for multiple OSes.

Basically, you create a single pro (project) file, that is much simpler to manage and edit when compared to a Makefile and then you can use it to compile on different platforms.
Here is an example of what this 'pro' file looks like:

Code: Select all

# Create a console application that uses threads.          
TEMPLATE =app
CONFIG	+= console thread

# enable compiler warnings
CONFIG += warn_on

# remove 'qt' dependencies -- libraries. 
CONFIG -= qt

# your source files
SOURCES	+= main.cpp HelloDavid.cpp MateOpponent.cpp 
           
# Destination directory
DESTDIR = .

# add extra includes here
INCLUDEPATH += .  

# Output fle name
TARGET		= HelloDavid

DEPENDPATH += $$INCLUDEPATH
then, on the command line, you would do "qmake HelloDavid.pro" and then call the appropriate make utility (nmake, make, etc.)

This might look like it is an extra step, but in the long run it can save you a lot of time ... well, it has saved me a ton of time. ;-)

Regards,
Hristo
User avatar
David Dahlem
Posts: 900
Joined: Wed Mar 08, 2006 9:06 pm

Re: New Intel C++ Compiler v10.1.020

Post by David Dahlem »

hristo wrote:
David Dahlem wrote:
hristo wrote:
David Dahlem wrote:I downloaded the 30 day trial of the new Intel C++ Compiler version 10.1.020 available here ...

https://registrationcenter.intel.com/Re ... ister.aspx

It's supposed to support the IDE integration of VS2008, but doesn't seem to work with my 2008 express version. So i'm trying to learn how to use the Intel compiler on the command line. I admit i am almost a complete dummy with compilers, and especially the command line.

I have managed to compile a simple Hello.cpp file on the Intel command line with this command - icl Hello.cpp. Could someone help a compiler idiot with the commands for multiple source files?

Thanks
Dave
Have you tried qmake? (http://trolltech.com)
(You can download a free version of Qt that will include qmake and then you can use it to create Makefiles, rather easily -- even if you aren't using the the Qt libraries.)


Regards,
Hristo
How will that help me compile from the command line? As i said, i'm a total dummy about compiling. :-)

Anyway, thanks for the tip, i'll check it out.

Regards
Dave
David,
qmake is a tool that generates Makefiles (for cli) for multiple compilers and for multiple OSes.

Basically, you create a single pro (project) file, that is much simpler to manage and edit when compared to a Makefile and then you can use it to compile on different platforms.
Here is an example of what this 'pro' file looks like:

Code: Select all

# Create a console application that uses threads.          
TEMPLATE =app
CONFIG	+= console thread

# enable compiler warnings
CONFIG += warn_on

# remove 'qt' dependencies -- libraries. 
CONFIG -= qt

# your source files
SOURCES	+= main.cpp HelloDavid.cpp MateOpponent.cpp 
           
# Destination directory
DESTDIR = .

# add extra includes here
INCLUDEPATH += .  

# Output fle name
TARGET		= HelloDavid

DEPENDPATH += $$INCLUDEPATH
then, on the command line, you would do "qmake HelloDavid.pro" and then call the appropriate make utility (nmake, make, etc.)

This might look like it is an extra step, but in the long run it can save you a lot of time ... well, it has saved me a ton of time. ;-)

Regards,
Hristo
This looks too compilcated for a non-expert at compiling. And it's not free. I need something simple. :-)

Regards
Dave
User avatar
David Dahlem
Posts: 900
Joined: Wed Mar 08, 2006 9:06 pm

Re: New Intel C++ Compiler v10.1.020

Post by David Dahlem »

Roman Hartmann wrote:Hi David,
did you try to type something like 'icl *.cpp'?

For me this works with GNU gcc and with the free Microsoft compiler as well.

best regards
Roman
Hi Roman

Many thanks. I believe i can get this to work. My first try, i got 2 error messages ...

utility.cpp
C:\Program Files\Intel\Compiler\C++\10.1.020\IA32\Bin\system.h(27): error: incomplete type is not allowed
struct timeval tv;

C:\Program Files\Intel\Compiler\C++\10.1.020\IA32\Bin\system.h(28): error: identifier "gettimeofday" is undefined
gettimeofday( &tv, NULL );

I think these errors can be fixed by setting the path to the proper include files, right?

Regards
Dave
User avatar
Roman Hartmann
Posts: 295
Joined: Wed Mar 08, 2006 8:29 pm

Re: New Intel C++ Compiler v10.1.020

Post by Roman Hartmann »

The two errors look familiar. You will need to find a replacement for gettimeofday() as it's not available under windows. I'm using clock() under windows as a replacement for gettimeofday().

Roman
User avatar
David Dahlem
Posts: 900
Joined: Wed Mar 08, 2006 9:06 pm

Re: New Intel C++ Compiler v10.1.020

Post by David Dahlem »

Another question. I found this in the Intel forum ...

"Intel C++ 10.1.020 is available for downloading now. It supports VS2008 beta2 from command line only. You need to manually update the icvars.bat and icl.cfg to work with VS2008."

How do i do that?

Thanks
Dave
User avatar
Jim Ablett
Posts: 2128
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: New Intel C++ Compiler v10.1.020

Post by Jim Ablett »

Hi David,
David Dahlem wrote:Another question. I found this in the Intel forum ...

"Intel C++ 10.1.020 is available for downloading now. It supports VS2008 beta2 from command line only. You need to manually update the icvars.bat and icl.cfg to work with VS2008."

How do i do that?

Thanks
Dave
Edit

Code: Select all

'Program Files\Intel\Compiler\C++\10.1.020\IA32\Bin\icl.cfg
Mine looks like this:

Code: Select all

# This Configuration file may be used for additional switches

# Enable Microsoft Visual C++* .NET 8.0 compatibility
-Qvc8

# Path to Microsoft Visual C++* .NET 8.0 linker
-Qlocation,link,"D:\Program Files\Microsoft Visual Studio 8\VC\Bin"

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

i got 2 error messages ...

utility.cpp
C:\Program Files\Intel\Compiler\C++\10.1.020\IA32\Bin\system.h(27): error: incomplete type is not allowed
struct timeval tv;

C:\Program Files\Intel\Compiler\C++\10.1.020\IA32\Bin\system.h(28): error: identifier "gettimeofday" is undefined
gettimeofday( &tv, NULL );

I think these errors can be fixed by setting the path to the proper include files, right?
You'll be able to resolve this by looking at the latest Glaurung src which includes 'timeoday.cpp'

regards,
Jim.