473,856 Members | 1,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4541
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
3159
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 < 10; i++);
1
2920
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 compiler (intel, KAI, g++...) and gnu makefiles For some obscure reasons, I have to make all this work in Windows, where I have very little experience. I've installed cygwin and everything is going well using the provided g++ compiler.
2
2988
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 working fine using g++, but since switching to the Intel compiler it has stopped working. I think the singleton pattern static instance thing may be at the root of the problem, but I'm not sure. I had to add calls to instance() in regCreateFn, which gets the behaviour more in line with what I was...
5
3668
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 icl.exe compiler executable itself. This file is installed under this directory C:\Program Files\Intel\CPP\Compiler80\Ia32\Bin Any ideas what I do wrong? I try this: run the iclvars.bat batch file.
17
4158
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 compiler - Intel C++ Compiler 9.0 for Windows My previous experience with older versions of these two compilers told me that Intel code was running faster than MS code. But now that I am about to upgrade, I would lile to pick the one producing the fastest code (things may have changed!).
2
2638
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 following error message. Is this a compiler bug, or is there something wrong with the code? If the former, I'd be grateful for suggestions of a workaround, and if the latter, please tell me what I'm doing wrong.
0
1785
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 difficulties. 1. I tried to compile a simple c program //Program.c #include <stdio.h>
4
3999
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 successfully managed to build/link the product(server) on intel compiler. But when client(java) tries to connect to the server, server aborts with below back trace.
5
4948
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 http://software.intel.com/en-us/articles/implement-the-libm-math-library and the Linux compiler reference, respectively. I added #pragma function(exp)
0
9921
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11065
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10700
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10795
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9536
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7934
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7098
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5962
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4177
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.