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
New Intel C++ Compiler v10.1.020
Moderator: Ras
Re: New Intel C++ Compiler v10.1.020
Have you tried qmake? (http://trolltech.com)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
(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
-
- Posts: 900
- Joined: Wed Mar 08, 2006 9:06 pm
Re: New Intel C++ Compiler v10.1.020
How will that help me compile from the command line? As i said, i'm a total dummy about compiling.hristo wrote:Have you tried qmake? (http://trolltech.com)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
(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

Anyway, thanks for the tip, i'll check it out.
Regards
Dave
-
- Posts: 295
- Joined: Wed Mar 08, 2006 8:29 pm
Re: New Intel C++ Compiler v10.1.020
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
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
Re: New Intel C++ Compiler v10.1.020
David,David Dahlem wrote:How will that help me compile from the command line? As i said, i'm a total dummy about compiling.hristo wrote:Have you tried qmake? (http://trolltech.com)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
(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
Anyway, thanks for the tip, i'll check it out.
Regards
Dave
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
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
-
- Posts: 900
- Joined: Wed Mar 08, 2006 9:06 pm
Re: New Intel C++ Compiler v10.1.020
This looks too compilcated for a non-expert at compiling. And it's not free. I need something simple.hristo wrote:David,David Dahlem wrote:How will that help me compile from the command line? As i said, i'm a total dummy about compiling.hristo wrote:Have you tried qmake? (http://trolltech.com)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
(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
Anyway, thanks for the tip, i'll check it out.
Regards
Dave
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:then, on the command line, you would do "qmake HelloDavid.pro" and then call the appropriate make utility (nmake, make, etc.)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
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

Regards
Dave
-
- Posts: 900
- Joined: Wed Mar 08, 2006 9:06 pm
Re: New Intel C++ Compiler v10.1.020
Hi RomanRoman 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
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
-
- Posts: 295
- Joined: Wed Mar 08, 2006 8:29 pm
Re: New Intel C++ Compiler v10.1.020
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
Roman
-
- Posts: 900
- Joined: Wed Mar 08, 2006 9:06 pm
Re: New Intel C++ Compiler v10.1.020
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
"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
-
- 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
Hi David,
Mine looks like this:
regards,
Jim.
EditDavid 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
Code: Select all
'Program Files\Intel\Compiler\C++\10.1.020\IA32\Bin\icl.cfg
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
You'll be able to resolve this by looking at the latest Glaurung src which includes 'timeoday.cpp'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,
Jim.