-
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
Gigabyte AMD B550 UD AC Gaming Motherboard - AMD B550 Chipset - AM4 Socket - AMD
$79.99
ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield
$42.00
ASUS Prime B250M-C LGA1151 DDR4 Desktop Motherboard USB 3.0 w/ I/O Shield
$39.99
ASUS P8B75-M/CSM Desktop Motherboard Intel Socket LGA1155 DDR3 w/ IO
$29.99
Asrock Z390 Phantom Gaming 4S/AC Wifi 8th/9th Gen Intel 1151 Motherboard Bulk
$43.33
MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard
$80.71
Intel DH61CR LGA1155 MicroATX Motherboard Core i3 i5 i7 Pentium NO CPU Fan HS
$14.99
Asus B85M-E B85 LGA 1150 Micro ATX DDR3 SATA3.0 Desktop Motherboard With I/O
$32.99
ASUS STRIX X299-E GAMING ATX Motherboard With I/O Shield & Intel Core i7 CPU 4.3
$175.00
ASUS PRIME Z690-P WIFI D4 ATX Motherboard Intel LGA1700 DDR4 HDMI
$99.99