Re: [expert] g++ can't find iostream.h!
Peter, AS far as i know bc and unix c header files are not identical. Try to use stdio.h with printf function. FG On Wed, 23 Aug 2000, Peter M Aarestad wrote: Now, this is weird. I'm trying to compile a program (yudit, in particular) that has #include iostream.h in one of its header files. Pretty normal header file for C++, right? Well, g++ chokes back that it can't find it! I tried a simple "hello world" program using iostream.h in the same way, and it wouldn't compile that, either. Now, mind you, it compiles other programs just fine, like code using stdio.h, but I think it's having problems finding the ANSI C++ files. What gives? Is there an easier solution than making symlinks to each and every header file in the /usr/include root directory? -peter -- peter aarestad :-) [EMAIL PROTECTED] http://www.aarestad.net peace, love, happiness, Christ, music, etc... "The world really doesn't need more busy people, maybe not even more intelligent people. It needs 'deep people'..." -Don Postema
Re: [expert] g++ can't find iostream.h! It's not on disk one!
Hi! The problem is probably that libstdc++-2.95.2-7mdk is NOT ON THE FIRST DISK of the Mandrake 7.1 distribution. If you don't have an extension disk you probably have to download it from some Mandrake mirror site. Regards Erik Ontor, 24 aug 2000 you wrote: Peter, AS far as i know bc and unix c header files are not identical. Try to use stdio.h with printf function. FG On Wed, 23 Aug 2000, Peter M Aarestad wrote: Now, this is weird. I'm trying to compile a program (yudit, in particular) that has #include iostream.h in one of its header files. Pretty normal header file for C++, right? Well, g++ chokes back that it can't find it! I tried a simple "hello world" program using iostream.h in the same way, and it wouldn't compile that, either. Now, mind you, it compiles other programs just fine, like code using stdio.h, but I think it's having problems finding the ANSI C++ files. What gives? Is there an easier solution than making symlinks to each and every header file in the /usr/include root directory? -peter -- peter aarestad :-) [EMAIL PROTECTED] http://www.aarestad.net peace, love, happiness, Christ, music, etc... "The world really doesn't need more busy people, maybe not even more intelligent people. It needs 'deep people'..." -Don Postema -- New email address please update your address book !! Erik Kaffehr[EMAIL PROTECTED] alt. [EMAIL PROTECTED] Mariebergsvägen 53 +46 155 219338 (home) S-611 66 Nyköping +46 155 263515 (office) Sweden -- Message sent using 100% recycled electrons --
Re: [expert] g++ can't find iostream.h!
Hi, Assuming stdc++ is installed, compile using g++ or include -lstdc++ in your makefile.. it'll work.. -sarang
Re: [expert] g++ can't find iostream.h!
Submitted 23-Aug-00 by Peter M Aarestad: Now, this is weird. I'm trying to compile a program (yudit, in particular) that has #include iostream.h in one of its header files. Pretty normal header file for C++, right? Well, g++ chokes back that it can't find it! I tried a simple "hello world" program using iostream.h in the same way, and it wouldn't compile that, either. Now, mind you, it compiles other programs just fine, like code using stdio.h, but I think it's having problems finding the ANSI C++ files. What gives? Is there an easier solution than making symlinks to each and every header file in the /usr/include root directory? -peter I've seen this before, sometimes libstdc++-devel doesn't get installed even though it should have. Ensure that /usr/include/g++-3/ actually exists and has the headers. Assuming that they are there, adding -I/usr/include/g++-3 to the g++ command line should work. -- Anton GrahamGPG ID: 0x18F78541 [EMAIL PROTECTED] RSA key available upon request Be regular and orderly in your life, so that you may be violent and original in your work. -- Flaubert
Re: [expert] g++ can't find iostream.h!
On Thu, 24 Aug 2000, Peter M Aarestad pushed some tiny letters in this order: Now, this is weird. I'm trying to compile a program (yudit, in particular) that has #include iostream.h in one of its header files. Pretty normal header file for C++, right? Well, g++ chokes back that it can't find it! I tried a simple "hello world" program using iostream.h in the same way, and it wouldn't compile that, either. Now, mind you, it compiles other programs just fine, like code using stdio.h, but I think it's having problems finding the ANSI C++ files. What gives? Is there an easier solution than making symlinks to each and every header file in the /usr/include root directory? -peter Does the file actually exist in either /usr/include/g++-2 (for egcs c++) or /usr/include/g++-3 (for gcc std c++ lib) ? If it doesn't you need to grab at a minimum either one of these packages: libstdc++-devel-2.95.2-7mdk egcs-c++-1.1.2-28mdk If it does exist then maybe you're include directories aren't setup right. Try compiling with the switch -I/usr/include/g++-3 or whatever directory. HTH, Tony
Re: [expert] g++ can't find iostream.h!
Peter M Aarestad wrote: Now, this is weird. I'm trying to compile a program (yudit, in particular) that has #include iostream.h in one of its header files. Pretty normal header file for C++, right? Well, g++ chokes back that it can't find it! I tried a simple "hello world" program using iostream.h in the same way, and it wouldn't compile that, either. Now, mind you, it compiles other programs just fine, like code using stdio.h, but I think it's having problems finding the ANSI C++ files. What gives? Is there an easier solution than making symlinks to each and every header file in the /usr/include root directory? The ANSI C++ header is iostream - no .h -- Mage Grimau .. So you can spend the morning lying to your father quite amazed about the Strange Unwashed and Happily Slightly Dazed. .. [EMAIL PROTECTED] / [EMAIL PROTECTED] / ICQ:71694384