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)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: segg2, Unassigned)
Details
Attachments
(2 files, 1 obsolete file)
|
7.21 KB,
patch
|
Details | Diff | Splinter Review | |
|
342 bytes,
patch
|
Details | Diff | Splinter Review |
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>
| Reporter | ||
Comment 1•17 years ago
|
||
- 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.
| Reporter | ||
Comment 2•17 years ago
|
||
Attachment #328833 -
Attachment is obsolete: true
| Reporter | ||
Comment 3•17 years ago
|
||
| Reporter | ||
Comment 4•17 years ago
|
||
(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 5•17 years ago
|
||
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
Updated•17 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Core → Firefox Build System
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•