-
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

Macintosh Platinum Mouse - Apple 128K 512K 512Ke Mac Plus Lisa IIe M0100 - NEW
$49.99

RARE 1984 Apple Macintosh 128K Original ROM Set Low/High Version B TESTED NICE
$169.99

Apple Macintosh Mac 128k - 512k Boot / Diagnostics 2 Disk Set for Classic Macs
$14.99

1984 APPLE MACINTOSH 128K MATCHING # BOX Set Original Mac Model M0001 WORKS RARE
$6299.00

Vintage Apple IIe Platinum A2S2128 128K Computer Parts Repair Missing Keys
$100.00

Apple Macintosh 128k 512k Plus Power Supply Analog Board - needs work
$60.00

Apple IIe Platinum 128k Computer - Powers On - As is - See Photos - a2s2128
$255.00

VINTAGE APPLE III COMPUTER A3S1-052010 (128k)
$800.00

1984 APPLE MACINTOSH 128K FIRST MAC Model M0001 PICASSO KIT Discs Harvard Rare
$1800.00

Apple Macintosh 9" B&W CRT Mac 128k 512k Plus SE SE/30 Classic - Working (260191
$39.99