Find the answer to your Linux question:
Results 1 to 3 of 3
I have recently installed intel 10.1 c++ compiler but I don't know how to compile a c++ program using this. Can anyone help me??? plzz...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    4

    compiling C++ program using intel compiler


    I have recently installed intel 10.1 c++ compiler but I don't know how to compile a c++ program using this.

    Can anyone help me???
    plzz

  2. #2
    Linux Newbie
    Join Date
    Jan 2008
    Location
    UK
    Posts
    211
    Hello, I found this from this link http://cc.in2p3.fr/doc/INTEL/icc/doc/index.htm- hope it helps.
    Using the Compiler on the Command Line

    You can "source" the compiler environment script, iccvars.sh (or iccvars.csh), to set the environment variables prior to invoking the compiler:
    source /opt/intel/cc/10.1.xxx/bin/iccvars.sh

    To compile a C language source file (for example, my_source_file.c), use the following command:
    icc my_source_file.c

    To compile C++ source files, use this command:
    icpc my_source_file.cpp

    Following successful compilation, an executable named a.out is created in the current directory.

    The Intel compiler also includes man pages. After sourcing the environment script, open the man page to view a complete list of compiler options:
    man icc

    You can read a summary of compiler options from the command line by invoking the compiler with the -help option:
    icc -help

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    4
    thanq wowbag1 for your help.........

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •