469,920 Members | 2,331 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,920 developers. It's quick & easy.

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?
Jul 22 '05 #1
4 4248
me*****@copper.net posted:
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?


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
Jul 22 '05 #2
<me*****@copper.net> wrote...
I am trying to set up the intel compiler. I have no trouble when I
#include <stdio.h>
but if I
#include (iostream>
I sincerely hope you do have the opening angle bracket instead of the
left parenthesis in your real code...
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?


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
Jul 22 '05 #3
oLE
Victor Bazarov wrote:
<me*****@copper.net> wrote...
I am trying to set up the intel compiler. I have no trouble when I
#include <stdio.h>
but if I
#include (iostream>

I sincerely hope you do have the opening angle bracket instead of the
left parenthesis in your real code...

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?

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


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

i use a dos compiler that insists on the file extension.
Jul 22 '05 #4
oLE wrote:
maybe intel compiler wants:
#include <iostream.h>

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


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
Jul 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Alex Vinokur | last post: by
2 posts views Thread by Ryan Mitchley | last post: by
17 posts views Thread by Ozo | last post: by
5 posts views Thread by rembremading | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.