intel compiler

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • merlevo@copper.net

    #1

    intel compiler

    I am trying to set up the intel compiler. I have no trouble when I
    #include <stdio.h>
    but if I
    #include (iostream>
    using namespace std;
    I get an error "could not open source file "iostream"

    When I use gcc I don't get this error.


    Sorry if this is a stupid question. Any help?
  • JKop

    #2
    Re: intel compiler

    merlevo@copper. net posted:
    [color=blue]
    > I am trying to set up the intel compiler. I have no trouble when I
    > #include <stdio.h>
    > but if I
    > #include (iostream>
    > using namespace std;
    > I get an error "could not open source file "iostream"
    >
    > When I use gcc I don't get this error.
    >
    >
    > Sorry if this is a stupid question. Any help?
    >[/color]

    You wrote

    #include (iostream>

    in the above.

    if you write:

    #include <iostream>


    and get an error... well... that's an issue with your compiler.


    -JKop

    Comment

    • Victor Bazarov

      #3
      Re: intel compiler

      <merlevo@copper .net> wrote...[color=blue]
      >I am trying to set up the intel compiler. I have no trouble when I
      > #include <stdio.h>
      > but if I
      > #include (iostream>[/color]

      I sincerely hope you do have the opening angle bracket instead of the
      left parenthesis in your real code...
      [color=blue]
      > using namespace std;
      > I get an error "could not open source file "iostream"
      >
      > When I use gcc I don't get this error.
      >
      >
      > Sorry if this is a stupid question. Any help?[/color]

      This question is not stupid, but it is rather misplaced. You probably
      have not completed the installation (or have made a mistake while doing
      the setup), and that's why the compiler can't find its own headers.
      However, this newsgroup does not deal with _products_ and especially
      the installation problems. Contact Intel's technical support. Or, if
      you have trouble contacting them, asking in a newsgroup dedicated to
      programming your OS might actually help, folks there know how products
      install and where and how to make compilers find their own headers. It
      is all OS- and product-specific.

      <offtopic> Not to let you down completely, I can only suggest one thing
      that might help you: add the directory where Intel's headers are located
      to the 'INCLUDE' environment variable. But please don't ask how to do
      that, I simply don't know because it's different from OS to OS.
      </offtopic>

      V


      Comment

      • oLE

        #4
        Re: intel compiler

        Victor Bazarov wrote:[color=blue]
        > <merlevo@copper .net> wrote...
        >[color=green]
        >>I am trying to set up the intel compiler. I have no trouble when I
        >>#include <stdio.h>
        >>but if I
        >>#include (iostream>[/color]
        >
        >
        > I sincerely hope you do have the opening angle bracket instead of the
        > left parenthesis in your real code...
        >
        >[color=green]
        >>using namespace std;
        >>I get an error "could not open source file "iostream"
        >>
        >>When I use gcc I don't get this error.
        >>
        >>
        >>Sorry if this is a stupid question. Any help?[/color]
        >
        >
        > This question is not stupid, but it is rather misplaced. You probably
        > have not completed the installation (or have made a mistake while doing
        > the setup), and that's why the compiler can't find its own headers.
        > However, this newsgroup does not deal with _products_ and especially
        > the installation problems. Contact Intel's technical support. Or, if
        > you have trouble contacting them, asking in a newsgroup dedicated to
        > programming your OS might actually help, folks there know how products
        > install and where and how to make compilers find their own headers. It
        > is all OS- and product-specific.
        >
        > <offtopic> Not to let you down completely, I can only suggest one thing
        > that might help you: add the directory where Intel's headers are located
        > to the 'INCLUDE' environment variable. But please don't ask how to do
        > that, I simply don't know because it's different from OS to OS.
        > </offtopic>
        >
        > V
        >
        >[/color]

        maybe intel compiler wants:
        #include <iostream.h>

        i use a dos compiler that insists on the file extension.

        Comment

        • Gregg

          #5
          Re: intel compiler

          oLE wrote:
          [color=blue]
          > maybe intel compiler wants:
          > #include <iostream.h>
          >
          > i use a dos compiler that insists on the file extension.[/color]

          iostream.h and iostream are two different headers. Your DOS compiler
          does not insist on the .h; it simply does not have the iostream header.

          The one with the ".h" was part of pre-standard C++ and should not be
          used for new code. The declarations it provides are different from what
          iostream provides. The DOS compiler you use is probably very old and
          does not have the newer libraries with the non-extension headers.

          Anything after about 1998 should have the newer headers.

          Gregg

          Comment

          Working...