Bug 77483
Summary: | Cannot compile Hello app with c++ using cout | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <beckerdite> |
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: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-11-07 20:21:56 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-07 20:21:49 UTC
This is a C++ program, right? So it should use .C/.cxx/.cpp/.c++ extension, not .c. Also, if you are using STL in it, you should use g++ compiler driver, not gcc, so that libstdc++ gets linked in. And last, cout is in std namespace, so you need to write std::cout or add using namespace std; or using std::cout; above main. |