472,328 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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 4423
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Alex Vinokur | last post by:
=========== Windows 2000 Intel C++ 8.0 =========== ------ foo.cpp ------ int main () { for (int i = 0; i < 10; i++); for (int i = 0; i <...
1
by: alex | last post by:
Hello I have some c++ code, which has been happily developped in the linux/unix world. Everything has always been compiled with different...
2
by: Ryan Mitchley | last post by:
Hi all I have code for an object factory, heavily based on an article by Jim Hyslop (although I've made minor modifications). The factory was...
5
by: Lars Schouw | last post by:
I have downloaded the newest boos release. I am havng problems building boost using the intel C++ 8.0 compiler. It looks as if bjam can't fine the...
17
by: Ozo | last post by:
What would be the C++ compiler producing the fastest code for Windows XP Pro (32-bit)? I have to choose between these two: - Visual C++ 2005...
2
by: Faheem Mitha | last post by:
Hi, The following bit of code compiles fine with gcc 3.3 or later, but has problems with the Intel C++ compiler version 9.1, which produces the...
0
by: Vinay | last post by:
Hello, I have to compile the ICU 3.4 Using Intel C++ Compiler 9.0 with Cygwin on Windows Server 2003 (IA 64 machine). But I am facing a lot of...
4
by: CoL | last post by:
Hi All, We have recently migrated our product to intel compiler 8.0 from gcc 2.96 on RHEL 4. Everything works absolutely fine with gcc. I have...
5
by: rembremading | last post by:
Hi All, I want to use intels LibM math library for my c program under Linux with intel compiler 10.1. I tried to follow the steps in...
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.