Bug 77667
Summary: | g++ will not compile | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <t-anderson> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-11-11 19:30:53 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
Need Real Name
2002-11-11 19:30:47 UTC
main must return int, ISO C++ 98 requires this. cout nor endl are present in global namespace, so neither that can be recognized. They are defined in std namespace, so you need either to: a) add using namespace std; after the includes b) add using std::cout; and using std::endl; after the includes c) use std::cout instead of cout and similarly with endl |