Submit | Open tickets | Closed tickets

[ Ticket #68 ] typedef.h line 18; model.cpp line 56 class ios
Date:
11/28/01 16:47
Submitted by:
robertthebob
Assigned to:
unset
Category:
Compilation/Installation
Priority:
5
Ticket group:
Need to Fix
Resolution:
Unset
Summary:
typedef.h line 18; model.cpp line 56 class ios
Original submission:
The Compaq (DEC) cxx compiler on alpha compiles cleanly up
to this point:

make[1]: Leaving directory `/md1/usr/local/src/ghemical-0.81/miniMOPAC'
make[1]: Entering directory `/md1/usr/local/src/ghemical-0.81/src/common'
/usr/bin/cxx -DPRIMARY_PATH="/usr/local/share/ghemical/" -DFORMAT_PATH="/usr/local/share/ghemical/0.81" -c -g -I../../src/graphics -I../../src/common -I../../oelib -I/usr/local/src/ghemical-0.81/src ./model.cpp
cxx: Error: ./typedef.h, line 18: name must be a namespace name
using namespace std;
----------------^
cxx: Error: ./model.cpp, line 56: class "ios" has no member "binary"
else file.open(model_simple::GetFullPrimaryFN(fn), ios::in | ios::binary);
--------------------------------------------------------------------------^
cxx: Error: ./model.cpp, line 63: class "ios" has no member "binary"
else file.open(model_simple::GetFullSecondaryFN(fn), ios::in | ios::binary);
----------------------------------------------------------------------------^
cxx: Info: 3 errors detected in the compilation of "./model.cpp".
make[1]: *** [model.o] Error 1
make[1]: Leaving directory `/md1/usr/local/src/ghemical-0.81/src/common'


____________________
g++ does not compile ghemical cleanly on alpha,
too many errors.
Please log in to add comments and receive followups via email.
Followups
Comment Date By
Thanks Bob,

I have added the lines you suggested but can't test how it works.

TH
12/05/01 08:51 thassine
*******************************************
This problem is avoided by adding,
to the following files,
src/common/typedef.h
src/common/errutil.cpp
src/common/notice.h
The following:

/* added by Robert Williams for Compaq cxx, alpha 11/28/01 */
#define __USE_STD_IOSTREAM

just above these lines:

#include <iostream>
using namespace std;

Bob Williams
11/29/01 09:12 robertthebob
No results for "Dependent on ticket"
No results for "Dependent on Task"
No other tickets are dependent on this ticket
Ticket change history
Field Old value Date By
status_id Unset 03/07/02 02:36 thassine
close_date 12/31/69 19:00 03/07/02 02:36 thassine

© 1998-2025 Scilico, LLC. All rights reserved.