Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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???

  2. #2
    Linux Newbie
    Join Date
    Jan 2008
    Hello, I found this from this link hope it helps.
    Using the Compiler on the Command Line

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

    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
    thanq wowbag1 for your help.........

  4. $spacer_open

Posting Permissions

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