-
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
Cisco Nexus 96-Port 10G SFP+ Switch N9K-93128TX w/ 9K-M12PQ 12-Port 40G QSFP
$149.99
Cisco Catalyst C9300-24UX-A 24 UPOE Switch 90 Day Warranty
$320.00
LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module
$95.00
Cisco IE-1000-8P2S-LM Industrial Ethernet Switch New Sealed
$1100.57
Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03
$8.00
Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850
$32.90
Cisco C3850-NM-4-10G 4 Port Network Exp.Module for 3850
$148.99
C9300-NM-8X CISCO C9300 Series 8 x 10GE Network Module for Catalyst 9300 Switch
$299.97
Cisco Catalyst C9300-24UX-A 24 Port 10G/mGig Copper UPOE Network Switch
$375.00
Cisco Catalyst 3650 WS-C3650-48PS-S 48-Port Gigabit Managed PoE+ Ethernet CB-101
$62.86