Bug 74946
Summary: | g++ on RH8.0 does not see standard library types properly | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Matt Kennel <mkennel> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | CC: | ali |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-10-03 03:43:20 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matt Kennel
2002-10-02 23:16:37 UTC
For reference: [ali@damascus tt]$ cat /etc/redhat-release Red Hat Linux release 8.0 (Psyche) [ali@damascus tt]$ cat bug.cpp #include <iostream> #include <string> main() { std::string s("Hello standard library.\n"); std::cout << "hello world\n" << s; } [ali@damascus tt]$ g++ -o bug bug.cpp [ali@damascus tt]$ ./bug hello world Hello standard library. Cheers, -Ali The standard defines string, cout etc. in std namespace. So, either you do ali suggested, or you add using std::string; using std::cout; or you add using namespace std; |