compiling from the command line/ ass1.c:1:22: iostream.h: No…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Rob Wultsch
Date:  
Subject: compiling from the command line/ ass1.c:1:22: iostream.h: No such fileor directory
I have no need to keep the .h. I am just working through some of my
lessions from when I took a cpp class way back when. What I do not
understand is why the instructor taught it in an outdated style. The
class happened in fall 2002. I guess I will have to do some stfw to
figure out what I need to do.

Thanks everyone for the suggestions.

Kurt Granroth wrote:
> On Wednesday 27 August 2003 09:27 am, wrote:
>
>>Howdy. I am using a debian unstable based on knoppix. To answer one person:
>>rob@fearlesslaptop:~$ locate iostream.h
>>/usr/include/c++/3.2/backward/iostream.h
>>rob@fearlesslaptop:~$ find /usr/include/ -name iostream.h
>>/usr/include/c++/3.2/backward/iostream.h
>>
>>To answer another I have been using both:
>>rob@fearlesslaptop:~$ gcc as1.h -o as1
>>
>>g++ as1.h -a as1
>>
>>Why would they change the header styles? And why would msft not change
>>their software with the time?
>
>
> It doesn't matter where the header files are. gcc/g++ will automatically find
> all of the header files it is supposed to find.
>
> gcc will NOT automatically find any C++ header files (like iostream) but g++
> will.
>
> The header style was changed to conform with the C++ standard. I'm not 100%
> of the reasoning behind the change, though.
>
> You can access the system headers either with or without the .h in both g++
> and MSVC++. g++ gets progressively more strict about C++ compliance as each
> version is released, though, so it's harder to go the non-standard route. As
> somebody mentioned, if you *really* need to keep the .h (and I don't know why
> you would unless you are also compiling the code on a very old compiler), you
> can enable it with newer g++ with -Wno-deprecated
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



-- 
                                   .-.
=------------------------------   /v\  ----------------------------=
Robert Wultsch                   // \\        
Linux User                      /(   )\              AIM:sheepsleep7
Don't fear the penguins          ^^-^^                  (602)6927564