-
GCC with C++ problem
Thanks, WaKa!
What I did was the simple "hello, world!" program in C and C++, using exactly the format you suggested.
For C, it worked absolutely as expected, so I was surprised when it couldn't find iostream for the C++ version of the program (using cout << "Hello, world!" << endl; ), and I got the error message that ostream was not defined in this function! I gave it this:
#include <iostream>
for C++, just like I gave it:
#include <stdio.h>
for the C case. I tried the alias for gcc (g++), as well. If I specifically gave the absolute path to iostream it worked.
Since this is a Live CD, however, I'd have to re-master to add a PATH or an alias.
So suggestions are still welcome!
--Fred
Similar Threads
-
By Keithj in forum Hdd Install / Debian / Apt
Replies: 10
Last Post: 09-10-2005, 05:55 AM
-
By sfackler in forum General Support
Replies: 0
Last Post: 08-31-2005, 03:32 AM
-
By tilleyrw in forum General Support
Replies: 1
Last Post: 04-29-2005, 04:18 AM
-
By c0ns7ruc7 in forum Hardware & Booting
Replies: 2
Last Post: 11-10-2004, 10:35 PM
-
Replies: 5
Last Post: 04-25-2003, 05:25 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
IBM x3550 M4 7042-CR8 6-Bay Server System Intel Xeon E5-2640v2 2.50Ghz 8GB No HD
$419.99
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System
$359.99
IBM 8203-E4A pSeries 520 6-Bay Server System Power6 2 Core 4.2GHz 4GB No HD
$419.99
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server
$319.99
IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD
$84.50
IBM SYSTEM x3200 M2 Server - HDD wiped, No OS
$75.00
IBM x3550 7042-CR4 Server System Intel Xeon 5130 2.00Ghz DVD-Rom Drive 1GB No HD
$139.99
IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES
$26.97
IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD
$349.99
IBM Power 750 Express 12SFF 8233-E8B Power 7 3.3GHz CPU 32GB RAM *No HDD* Server
$199.99