Closed Bug 444519 Opened 17 years ago Closed 17 years ago

oink -- gcc 4.3, flex-2.5.35, #include <ostream.h> to <ostream>, using namespace std;

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: segg2, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061712 Fedora/3.0-1.fc9 Firefox/3.0 Build Identifier: oink current - the gcc 4.3 compiler don't have <ostream.h> header - name in std libraries must have they namespace specified. Reproducible: Always Steps to Reproduce: 1. cd oink 2. make Actual Results: compiler says that <ostream.h> header are not found. Expected Results: replace <ostream.h> header to <ostream>
Attached patch diff file of the oink directory (obsolete) — Splinter Review
- the "make" command line should succeed in oink directory. - the "make" command line should succeed in oink-stack directory. - the "make check" command line in the oink directory is not successful.
Attachment #328833 - Attachment is obsolete: true
(In reply to comment #3) > Created an attachment (id=332380) [details] > hg diff file of oink_file.h > attachment 332380 [details] [diff] [review] have lost comments in attachment 331418 [details] [diff] [review] oink_file.h has change rindex() to strchr() should have been strrchr().
Comment on attachment 331418 [details] [diff] [review] oink hg diff file >--- a/oink_file.h Fri Jul 25 16:14:57 2008 -0700 >+++ b/oink_file.h Sat Jul 26 09:38:43 2008 -0400 >@@ -6,17 +6,20 @@ > #define OINK_FILE_H > > #include "astlist.h" >+#include <cstring> > #include <string> > #include <stdio.h> >+ >+using namespace std; Don't use namespaces in header files. Fixed this and committed
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: